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

istio.mcp.v1alpha1.Mcp Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mcp/v1alpha1/mcp.proto

package istio.mcp.v1alpha1;

public final class Mcp {
  private Mcp() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SinkNodeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.SinkNode)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * An opaque identifier for the MCP node.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * An opaque identifier for the MCP node.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ int getAnnotationsCount(); /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ boolean containsAnnotations( java.lang.String key); /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated java.util.Map getAnnotations(); /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ java.util.Map getAnnotationsMap(); /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ java.lang.String getAnnotationsOrThrow( java.lang.String key); } /** *
   * Identifies a specific MCP sink node instance. The node identifier is
   * presented to the resource source, which may use this identifier
   * to distinguish per sink configuration for serving. This
   * information is not authoritative. Authoritative identity should come
   * from the underlying transport layer (e.g. rpc credentials).
   * 
* * Protobuf type {@code istio.mcp.v1alpha1.SinkNode} */ public static final class SinkNode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.SinkNode) SinkNodeOrBuilder { private static final long serialVersionUID = 0L; // Use SinkNode.newBuilder() to construct. private SinkNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SinkNode() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SinkNode(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAnnotations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.SinkNode.class, istio.mcp.v1alpha1.Mcp.SinkNode.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** *
     * An opaque identifier for the MCP node.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * An opaque identifier for the MCP node.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANNOTATIONS_FIELD_NUMBER = 2; private static final class AnnotationsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_AnnotationsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ @java.lang.Override public boolean containsAnnotations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ @java.lang.Override public java.lang.String getAnnotationsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (java.util.Map.Entry entry : internalGetAnnotations().getMap().entrySet()) { com.google.protobuf.MapEntry annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, annotations__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.SinkNode)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.SinkNode other = (istio.mcp.v1alpha1.Mcp.SinkNode) obj; if (!getId() .equals(other.getId())) return false; if (!internalGetAnnotations().equals( other.internalGetAnnotations())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.SinkNode 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 istio.mcp.v1alpha1.Mcp.SinkNode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.SinkNode 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 istio.mcp.v1alpha1.Mcp.SinkNode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.SinkNode 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(istio.mcp.v1alpha1.Mcp.SinkNode 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; } /** *
     * Identifies a specific MCP sink node instance. The node identifier is
     * presented to the resource source, which may use this identifier
     * to distinguish per sink configuration for serving. This
     * information is not authoritative. Authoritative identity should come
     * from the underlying transport layer (e.g. rpc credentials).
     * 
* * Protobuf type {@code istio.mcp.v1alpha1.SinkNode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.SinkNode) istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAnnotations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableAnnotations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.SinkNode.class, istio.mcp.v1alpha1.Mcp.SinkNode.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.SinkNode.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; internalGetMutableAnnotations().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode build() { istio.mcp.v1alpha1.Mcp.SinkNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode buildPartial() { istio.mcp.v1alpha1.Mcp.SinkNode result = new istio.mcp.v1alpha1.Mcp.SinkNode(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(istio.mcp.v1alpha1.Mcp.SinkNode result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.SinkNode) { return mergeFrom((istio.mcp.v1alpha1.Mcp.SinkNode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.SinkNode other) { if (other == istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } internalGetMutableAnnotations().mergeFrom( other.internalGetAnnotations()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry annotations__ = input.readMessage( AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAnnotations().getMutableMap().put( annotations__.getKey(), annotations__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { annotations_ = com.google.protobuf.MapField.newMapField( AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } bitField0_ |= 0x00000002; onChanged(); return annotations_; } public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ @java.lang.Override public boolean containsAnnotations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ @java.lang.Override public java.lang.String getAnnotationsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAnnotations().getMutableMap() .clear(); return this; } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public Builder removeAnnotations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000002; return internalGetMutableAnnotations().getMutableMap(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public Builder putAnnotations( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public Builder putAllAnnotations( java.util.Map values) { internalGetMutableAnnotations().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; 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.SinkNode) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.SinkNode) private static final istio.mcp.v1alpha1.Mcp.SinkNode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.SinkNode(); } public static istio.mcp.v1alpha1.Mcp.SinkNode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SinkNode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MeshConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.MeshConfigRequest) com.google.protobuf.MessageOrBuilder { /** *
     * 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. */ java.lang.String getVersionInfo(); /** *
     * 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. */ com.google.protobuf.ByteString getVersionInfoBytes(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return Whether the sinkNode field is set. */ boolean hasSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return The sinkNode. */ istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder(); /** *
     * 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. */ java.lang.String getTypeUrl(); /** *
     * 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. */ com.google.protobuf.ByteString getTypeUrlBytes(); /** *
     * 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. */ java.lang.String getResponseNonce(); /** *
     * 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. */ com.google.protobuf.ByteString getResponseNonceBytes(); /** *
     * 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. */ boolean hasErrorDetail(); /** *
     * 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. */ com.google.rpc.Status getErrorDetail(); /** *
     * 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; */ com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder(); } /** *
   * 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 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.MeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.MeshConfigRequest.Builder.class); } public static final int VERSION_INFO_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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. */ @java.lang.Override 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. */ @java.lang.Override 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 istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_; /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return Whether the sinkNode field is set. */ @java.lang.Override public boolean hasSinkNode() { return sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return The sinkNode. */ @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode() { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } public static final int TYPE_URL_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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. */ @java.lang.Override 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. */ @java.lang.Override 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; @SuppressWarnings("serial") 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. */ @java.lang.Override 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. */ @java.lang.Override 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. */ @java.lang.Override 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. */ @java.lang.Override 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; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_); } if (sinkNode_ != null) { output.writeMessage(2, getSinkNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_); } if (sinkNode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSinkNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_); } if (errorDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getErrorDetail()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.MeshConfigRequest)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.MeshConfigRequest other = (istio.mcp.v1alpha1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.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(istio.mcp.v1alpha1.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) istio.mcp.v1alpha1.Mcp.MeshConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.MeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.MeshConfigRequest.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.MeshConfigRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; versionInfo_ = ""; sinkNode_ = null; if (sinkNodeBuilder_ != null) { sinkNodeBuilder_.dispose(); sinkNodeBuilder_ = null; } typeUrl_ = ""; responseNonce_ = ""; errorDetail_ = null; if (errorDetailBuilder_ != null) { errorDetailBuilder_.dispose(); errorDetailBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigRequest getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.MeshConfigRequest.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigRequest build() { istio.mcp.v1alpha1.Mcp.MeshConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigRequest buildPartial() { istio.mcp.v1alpha1.Mcp.MeshConfigRequest result = new istio.mcp.v1alpha1.Mcp.MeshConfigRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(istio.mcp.v1alpha1.Mcp.MeshConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.versionInfo_ = versionInfo_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sinkNode_ = sinkNodeBuilder_ == null ? sinkNode_ : sinkNodeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.typeUrl_ = typeUrl_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.responseNonce_ = responseNonce_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.errorDetail_ = errorDetailBuilder_ == null ? errorDetail_ : errorDetailBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.MeshConfigRequest) { return mergeFrom((istio.mcp.v1alpha1.Mcp.MeshConfigRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.MeshConfigRequest other) { if (other == istio.mcp.v1alpha1.Mcp.MeshConfigRequest.getDefaultInstance()) return this; if (!other.getVersionInfo().isEmpty()) { versionInfo_ = other.versionInfo_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasSinkNode()) { mergeSinkNode(other.getSinkNode()); } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getResponseNonce().isEmpty()) { responseNonce_ = other.responseNonce_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasErrorDetail()) { mergeErrorDetail(other.getErrorDetail()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { versionInfo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSinkNodeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { typeUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { responseNonce_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getErrorDetailFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; onChanged(); return this; } private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_; private com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.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 ((bitField0_ & 0x00000002) != 0); } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return The sinkNode. */ public istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode() { if (sinkNodeBuilder_ == null) { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } else { return sinkNodeBuilder_.getMessage(); } } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder setSinkNode(istio.mcp.v1alpha1.Mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sinkNode_ = value; } else { sinkNodeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder setSinkNode( istio.mcp.v1alpha1.Mcp.SinkNode.Builder builderForValue) { if (sinkNodeBuilder_ == null) { sinkNode_ = builderForValue.build(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder mergeSinkNode(istio.mcp.v1alpha1.Mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && sinkNode_ != null && sinkNode_ != istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance()) { getSinkNodeBuilder().mergeFrom(value); } else { sinkNode_ = value; } } else { sinkNodeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder clearSinkNode() { bitField0_ = (bitField0_ & ~0x00000002); sinkNode_ = null; if (sinkNodeBuilder_ != null) { sinkNodeBuilder_.dispose(); sinkNodeBuilder_ = null; } onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public istio.mcp.v1alpha1.Mcp.SinkNode.Builder getSinkNodeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSinkNodeFieldBuilder().getBuilder(); } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { if (sinkNodeBuilder_ != null) { return sinkNodeBuilder_.getMessageOrBuilder(); } else { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ private com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> getSinkNodeFieldBuilder() { if (sinkNodeBuilder_ == null) { sinkNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.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; bitField0_ |= 0x00000004; 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(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; 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(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
       * 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; } else { errorDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && errorDetail_ != null && errorDetail_ != com.google.rpc.Status.getDefaultInstance()) { getErrorDetailBuilder().mergeFrom(value); } else { errorDetail_ = value; } } else { errorDetailBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000010); errorDetail_ = null; if (errorDetailBuilder_ != null) { errorDetailBuilder_.dispose(); errorDetailBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.MeshConfigRequest(); } public static istio.mcp.v1alpha1.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MeshConfigResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.MeshConfigResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The version of the response data.
     * 
* * string version_info = 1; * @return The versionInfo. */ java.lang.String getVersionInfo(); /** *
     * The version of the response data.
     * 
* * string version_info = 1; * @return The bytes for versionInfo. */ com.google.protobuf.ByteString getVersionInfoBytes(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ java.util.List getResourcesList(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ int getResourcesCount(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ java.util.List getResourcesOrBuilderList(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index); /** *
     * 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 typeUrl. */ java.lang.String getTypeUrl(); /** *
     * 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. */ com.google.protobuf.ByteString getTypeUrlBytes(); /** *
     * 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 nonce. */ java.lang.String getNonce(); /** *
     * 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. */ com.google.protobuf.ByteString getNonceBytes(); } /** *
   * A MeshConfigResponse delivers a set of versioned resources of the
   * same type in response to a MeshConfigRequest.
   * 
* * Protobuf type {@code istio.mcp.v1alpha1.MeshConfigResponse} */ public static final class MeshConfigResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.MeshConfigResponse) MeshConfigResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MeshConfigResponse.newBuilder() to construct. private MeshConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MeshConfigResponse() { versionInfo_ = ""; resources_ = java.util.Collections.emptyList(); typeUrl_ = ""; nonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MeshConfigResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.MeshConfigResponse.class, istio.mcp.v1alpha1.Mcp.MeshConfigResponse.Builder.class); } public static final int VERSION_INFO_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object versionInfo_ = ""; /** *
     * The version of the response data.
     * 
* * string version_info = 1; * @return The versionInfo. */ @java.lang.Override 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 of the response data.
     * 
* * string version_info = 1; * @return The bytes for versionInfo. */ @java.lang.Override 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 RESOURCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List resources_; /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getResourcesList() { return resources_; } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index) { return resources_.get(index); } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int TYPE_URL_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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.
     * 
* * string type_url = 3; * @return The typeUrl. */ @java.lang.Override 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 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. */ @java.lang.Override 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; @SuppressWarnings("serial") 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.
     * 
* * string nonce = 4; * @return The nonce. */ @java.lang.Override public java.lang.String getNonce() { java.lang.Object ref = nonce_; 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(); nonce_ = s; return s; } } /** *
     * 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. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(2, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.MeshConfigResponse)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.MeshConfigResponse other = (istio.mcp.v1alpha1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.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(istio.mcp.v1alpha1.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.
     * 
* * Protobuf type {@code istio.mcp.v1alpha1.MeshConfigResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.MeshConfigResponse) istio.mcp.v1alpha1.Mcp.MeshConfigResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.MeshConfigResponse.class, istio.mcp.v1alpha1.Mcp.MeshConfigResponse.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.MeshConfigResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; versionInfo_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); } else { resources_ = null; resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); typeUrl_ = ""; nonce_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigResponse_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigResponse getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.MeshConfigResponse.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigResponse build() { istio.mcp.v1alpha1.Mcp.MeshConfigResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigResponse buildPartial() { istio.mcp.v1alpha1.Mcp.MeshConfigResponse result = new istio.mcp.v1alpha1.Mcp.MeshConfigResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(istio.mcp.v1alpha1.Mcp.MeshConfigResponse result) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000002); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } } private void buildPartial0(istio.mcp.v1alpha1.Mcp.MeshConfigResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.versionInfo_ = versionInfo_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.typeUrl_ = typeUrl_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nonce_ = nonce_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.MeshConfigResponse) { return mergeFrom((istio.mcp.v1alpha1.Mcp.MeshConfigResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.MeshConfigResponse other) { if (other == istio.mcp.v1alpha1.Mcp.MeshConfigResponse.getDefaultInstance()) return this; if (!other.getVersionInfo().isEmpty()) { versionInfo_ = other.versionInfo_; bitField0_ |= 0x00000001; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { versionInfo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { istio.mcp.v1alpha1.ResourceOuterClass.Resource m = input.readMessage( istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry); if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(m); } else { resourcesBuilder_.addMessage(m); } break; } // case 18 case 26: { typeUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { nonce_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object versionInfo_ = ""; /** *
       * The version of the response data.
       * 
* * 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 of the response data.
       * 
* * 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 of the response data.
       * 
* * 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The version of the response data.
       * 
* * string version_info = 1; * @return This builder for chaining. */ public Builder clearVersionInfo() { versionInfo_ = getDefaultInstance().getVersionInfo(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The version of the response data.
       * 
* * 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; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder> resourcesBuilder_; /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder setResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder setResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources(istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources( istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( istio.mcp.v1alpha1.ResourceOuterClass.Resource.getDefaultInstance()); } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.getDefaultInstance()); } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private 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.
       * 
* * 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 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; bitField0_ |= 0x00000004; 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(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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.
       * 
* * string nonce = 4; * @return The nonce. */ public java.lang.String getNonce() { java.lang.Object ref = nonce_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nonce_ = s; return s; } else { return (java.lang.String) 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; * @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; bitField0_ |= 0x00000008; 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(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; 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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.MeshConfigResponse(); } public static istio.mcp.v1alpha1.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.MeshConfigResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IncrementalMeshConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.IncrementalMeshConfigRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return Whether the sinkNode field is set. */ boolean hasSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return The sinkNode. */ istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder(); /** *
     * Type of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * string type_url = 2; * @return The typeUrl. */ java.lang.String getTypeUrl(); /** *
     * Type of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * string type_url = 2; * @return The bytes for typeUrl. */ com.google.protobuf.ByteString getTypeUrlBytes(); /** *
     * When the IncrementalMeshConfigRequest 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; */ int getInitialResourceVersionsCount(); /** *
     * When the IncrementalMeshConfigRequest 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; */ boolean containsInitialResourceVersions( java.lang.String key); /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @java.lang.Deprecated java.util.Map getInitialResourceVersions(); /** *
     * When the IncrementalMeshConfigRequest 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; */ java.util.Map getInitialResourceVersionsMap(); /** *
     * When the IncrementalMeshConfigRequest 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; */ /* nullable */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * When the IncrementalMeshConfigRequest 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; */ java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key); /** *
     * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
     * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
     * nonce in the IncrementalMeshConfigResponse.
     * Otherwise response_nonce must be omitted.
     * 
* * string response_nonce = 4; * @return The responseNonce. */ java.lang.String getResponseNonce(); /** *
     * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
     * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
     * nonce in the IncrementalMeshConfigResponse.
     * Otherwise response_nonce must be omitted.
     * 
* * string response_nonce = 4; * @return The bytes for responseNonce. */ com.google.protobuf.ByteString getResponseNonceBytes(); /** *
     * This is populated when the previous IncrementalMeshConfigResponses
     * failed to update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure.
     * 
* * .google.rpc.Status error_detail = 5; * @return Whether the errorDetail field is set. */ boolean hasErrorDetail(); /** *
     * This is populated when the previous IncrementalMeshConfigResponses
     * failed to update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure.
     * 
* * .google.rpc.Status error_detail = 5; * @return The errorDetail. */ com.google.rpc.Status getErrorDetail(); /** *
     * This is populated when the previous IncrementalMeshConfigResponses
     * failed to update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure.
     * 
* * .google.rpc.Status error_detail = 5; */ com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder(); } /** *
   * IncrementalMeshConfigRequest are be sent in 2 situations:
   *
   *   1. Initial message in a MCP bidirectional gRPC stream.
   *
   *   2. As a ACK or NACK response to a previous IncrementalMeshConfigResponse.
   *      In this case the response_nonce is set to the nonce value in the Response.
   *      ACK or NACK is determined by the absence or presence of error_detail.
   * 
* * Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigRequest} */ public static final class IncrementalMeshConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.IncrementalMeshConfigRequest) IncrementalMeshConfigRequestOrBuilder { private static final long serialVersionUID = 0L; // Use IncrementalMeshConfigRequest.newBuilder() to construct. private IncrementalMeshConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IncrementalMeshConfigRequest() { typeUrl_ = ""; responseNonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IncrementalMeshConfigRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetInitialResourceVersions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.Builder.class); } public static final int SINK_NODE_FIELD_NUMBER = 1; private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_; /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return Whether the sinkNode field is set. */ @java.lang.Override public boolean hasSinkNode() { return sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return The sinkNode. */ @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode() { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } public static final int TYPE_URL_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 = 2; * @return The typeUrl. */ @java.lang.Override 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 = 2; * @return The bytes for typeUrl. */ @java.lang.Override 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 INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER = 3; private static final class InitialResourceVersionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> initialResourceVersions_; private com.google.protobuf.MapField internalGetInitialResourceVersions() { if (initialResourceVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } return initialResourceVersions_; } public int getInitialResourceVersionsCount() { return internalGetInitialResourceVersions().getMap().size(); } /** *
     * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInitialResourceVersions() { return getInitialResourceVersionsMap(); } /** *
     * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public java.util.Map getInitialResourceVersionsMap() { return internalGetInitialResourceVersions().getMap(); } /** *
     * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public /* nullable */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RESPONSE_NONCE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object responseNonce_ = ""; /** *
     * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
     * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
     * nonce in the IncrementalMeshConfigResponse.
     * Otherwise response_nonce must be omitted.
     * 
* * string response_nonce = 4; * @return The responseNonce. */ @java.lang.Override 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; } } /** *
     * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
     * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
     * nonce in the IncrementalMeshConfigResponse.
     * Otherwise response_nonce must be omitted.
     * 
* * string response_nonce = 4; * @return The bytes for responseNonce. */ @java.lang.Override 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 IncrementalMeshConfigResponses
     * failed to update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure.
     * 
* * .google.rpc.Status error_detail = 5; * @return Whether the errorDetail field is set. */ @java.lang.Override public boolean hasErrorDetail() { return errorDetail_ != null; } /** *
     * This is populated when the previous IncrementalMeshConfigResponses
     * failed to update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure.
     * 
* * .google.rpc.Status error_detail = 5; * @return The errorDetail. */ @java.lang.Override public com.google.rpc.Status getErrorDetail() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } /** *
     * This is populated when the previous IncrementalMeshConfigResponses
     * failed to update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure.
     * 
* * .google.rpc.Status error_detail = 5; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } 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 (sinkNode_ != null) { output.writeMessage(1, getSinkNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeUrl_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInitialResourceVersions(), InitialResourceVersionsDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sinkNode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSinkNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeUrl_); } for (java.util.Map.Entry entry : internalGetInitialResourceVersions().getMap().entrySet()) { com.google.protobuf.MapEntry initialResourceVersions__ = InitialResourceVersionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, initialResourceVersions__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_); } if (errorDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getErrorDetail()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest other = (istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest) obj; if (hasSinkNode() != other.hasSinkNode()) return false; if (hasSinkNode()) { if (!getSinkNode() .equals(other.getSinkNode())) return false; } if (!getTypeUrl() .equals(other.getTypeUrl())) return false; if (!internalGetInitialResourceVersions().equals( other.internalGetInitialResourceVersions())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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(); if (!internalGetInitialResourceVersions().getMap().isEmpty()) { hash = (37 * hash) + INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetInitialResourceVersions().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest 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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest 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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest 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(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest 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; } /** *
     * IncrementalMeshConfigRequest are be sent in 2 situations:
     *
     *   1. Initial message in a MCP bidirectional gRPC stream.
     *
     *   2. As a ACK or NACK response to a previous IncrementalMeshConfigResponse.
     *      In this case the response_nonce is set to the nonce value in the Response.
     *      ACK or NACK is determined by the absence or presence of error_detail.
     * 
* * Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.IncrementalMeshConfigRequest) istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetInitialResourceVersions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableInitialResourceVersions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sinkNode_ = null; if (sinkNodeBuilder_ != null) { sinkNodeBuilder_.dispose(); sinkNodeBuilder_ = null; } typeUrl_ = ""; internalGetMutableInitialResourceVersions().clear(); responseNonce_ = ""; errorDetail_ = null; if (errorDetailBuilder_ != null) { errorDetailBuilder_.dispose(); errorDetailBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest build() { istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest buildPartial() { istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest result = new istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sinkNode_ = sinkNodeBuilder_ == null ? sinkNode_ : sinkNodeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.typeUrl_ = typeUrl_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.initialResourceVersions_ = internalGetInitialResourceVersions(); result.initialResourceVersions_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.responseNonce_ = responseNonce_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.errorDetail_ = errorDetailBuilder_ == null ? errorDetail_ : errorDetailBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest) { return mergeFrom((istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest other) { if (other == istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.getDefaultInstance()) return this; if (other.hasSinkNode()) { mergeSinkNode(other.getSinkNode()); } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableInitialResourceVersions().mergeFrom( other.internalGetInitialResourceVersions()); bitField0_ |= 0x00000004; if (!other.getResponseNonce().isEmpty()) { responseNonce_ = other.responseNonce_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasErrorDetail()) { mergeErrorDetail(other.getErrorDetail()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSinkNodeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { typeUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry initialResourceVersions__ = input.readMessage( InitialResourceVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableInitialResourceVersions().getMutableMap().put( initialResourceVersions__.getKey(), initialResourceVersions__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { responseNonce_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getErrorDetailFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_; private com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> sinkNodeBuilder_; /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return Whether the sinkNode field is set. */ public boolean hasSinkNode() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return The sinkNode. */ public istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode() { if (sinkNodeBuilder_ == null) { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } else { return sinkNodeBuilder_.getMessage(); } } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder setSinkNode(istio.mcp.v1alpha1.Mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sinkNode_ = value; } else { sinkNodeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder setSinkNode( istio.mcp.v1alpha1.Mcp.SinkNode.Builder builderForValue) { if (sinkNodeBuilder_ == null) { sinkNode_ = builderForValue.build(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder mergeSinkNode(istio.mcp.v1alpha1.Mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && sinkNode_ != null && sinkNode_ != istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance()) { getSinkNodeBuilder().mergeFrom(value); } else { sinkNode_ = value; } } else { sinkNodeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder clearSinkNode() { bitField0_ = (bitField0_ & ~0x00000001); sinkNode_ = null; if (sinkNodeBuilder_ != null) { sinkNodeBuilder_.dispose(); sinkNodeBuilder_ = null; } onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public istio.mcp.v1alpha1.Mcp.SinkNode.Builder getSinkNodeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSinkNodeFieldBuilder().getBuilder(); } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { if (sinkNodeBuilder_ != null) { return sinkNodeBuilder_.getMessageOrBuilder(); } else { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ private com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> getSinkNodeFieldBuilder() { if (sinkNodeBuilder_ == null) { sinkNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.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 = 2; * @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 = 2; * @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 = 2; * @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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type of the resource that is being requested, e.g.
       * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
       * 
* * string type_url = 2; * @return This builder for chaining. */ public Builder clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Type of the resource that is being requested, e.g.
       * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
       * 
* * string type_url = 2; * @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; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> initialResourceVersions_; private com.google.protobuf.MapField internalGetInitialResourceVersions() { if (initialResourceVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } return initialResourceVersions_; } private com.google.protobuf.MapField internalGetMutableInitialResourceVersions() { if (initialResourceVersions_ == null) { initialResourceVersions_ = com.google.protobuf.MapField.newMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } if (!initialResourceVersions_.isMutable()) { initialResourceVersions_ = initialResourceVersions_.copy(); } bitField0_ |= 0x00000004; onChanged(); return initialResourceVersions_; } public int getInitialResourceVersionsCount() { return internalGetInitialResourceVersions().getMap().size(); } /** *
       * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInitialResourceVersions() { return getInitialResourceVersionsMap(); } /** *
       * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public java.util.Map getInitialResourceVersionsMap() { return internalGetInitialResourceVersions().getMap(); } /** *
       * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public /* nullable */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * When the IncrementalMeshConfigRequest 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; */ @java.lang.Override public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearInitialResourceVersions() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableInitialResourceVersions().getMutableMap() .clear(); return this; } /** *
       * When the IncrementalMeshConfigRequest 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 Builder removeInitialResourceVersions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableInitialResourceVersions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInitialResourceVersions() { bitField0_ |= 0x00000004; return internalGetMutableInitialResourceVersions().getMutableMap(); } /** *
       * When the IncrementalMeshConfigRequest 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 Builder putInitialResourceVersions( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableInitialResourceVersions().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
       * When the IncrementalMeshConfigRequest 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 Builder putAllInitialResourceVersions( java.util.Map values) { internalGetMutableInitialResourceVersions().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object responseNonce_ = ""; /** *
       * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
       * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
       * nonce in the IncrementalMeshConfigResponse.
       * Otherwise response_nonce must be omitted.
       * 
* * 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; } } /** *
       * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
       * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
       * nonce in the IncrementalMeshConfigResponse.
       * Otherwise response_nonce must be omitted.
       * 
* * 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; } } /** *
       * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
       * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
       * nonce in the IncrementalMeshConfigResponse.
       * Otherwise response_nonce must be omitted.
       * 
* * 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
       * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
       * nonce in the IncrementalMeshConfigResponse.
       * Otherwise response_nonce must be omitted.
       * 
* * string response_nonce = 4; * @return This builder for chaining. */ public Builder clearResponseNonce() { responseNonce_ = getDefaultInstance().getResponseNonce(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * When the IncrementalMeshConfigRequest is a ACK or NACK message in response
       * to a previous IncrementalMeshConfigResponse, the response_nonce must be the
       * nonce in the IncrementalMeshConfigResponse.
       * Otherwise response_nonce must be omitted.
       * 
* * 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; bitField0_ |= 0x00000008; 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 IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .google.rpc.Status error_detail = 5; * @return Whether the errorDetail field is set. */ public boolean hasErrorDetail() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * This is populated when the previous IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .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 IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .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; } else { errorDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * This is populated when the previous IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder setErrorDetail( com.google.rpc.Status.Builder builderForValue) { if (errorDetailBuilder_ == null) { errorDetail_ = builderForValue.build(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * This is populated when the previous IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder mergeErrorDetail(com.google.rpc.Status value) { if (errorDetailBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && errorDetail_ != null && errorDetail_ != com.google.rpc.Status.getDefaultInstance()) { getErrorDetailBuilder().mergeFrom(value); } else { errorDetail_ = value; } } else { errorDetailBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * This is populated when the previous IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder clearErrorDetail() { bitField0_ = (bitField0_ & ~0x00000010); errorDetail_ = null; if (errorDetailBuilder_ != null) { errorDetailBuilder_.dispose(); errorDetailBuilder_ = null; } onChanged(); return this; } /** *
       * This is populated when the previous IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.Status.Builder getErrorDetailBuilder() { bitField0_ |= 0x00000010; onChanged(); return getErrorDetailFieldBuilder().getBuilder(); } /** *
       * This is populated when the previous IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .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 IncrementalMeshConfigResponses
       * failed to update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure.
       * 
* * .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.IncrementalMeshConfigRequest) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.IncrementalMeshConfigRequest) private static final istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest(); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IncrementalMeshConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IncrementalMeshConfigResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.IncrementalMeshConfigResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ java.lang.String getSystemVersionInfo(); /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ com.google.protobuf.ByteString getSystemVersionInfoBytes(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ java.util.List getResourcesList(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ istio.mcp.v1alpha1.ResourceOuterClass.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
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ int getResourcesCount(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ java.util.List getResourcesOrBuilderList(); /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index); /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @return A list containing the removedResources. */ java.util.List getRemovedResourcesList(); /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @return The count of removedResources. */ int getRemovedResourcesCount(); /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @param index The index of the element to return. * @return The removedResources at the given index. */ java.lang.String getRemovedResources(int index); /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ com.google.protobuf.ByteString getRemovedResourcesBytes(int index); /** *
     * The nonce provides a way for IncrementalMeshConfigRequests to
     * uniquely reference an IncrementalMeshConfigResponse. The nonce is
     * required.
     * 
* * string nonce = 4; * @return The nonce. */ java.lang.String getNonce(); /** *
     * The nonce provides a way for IncrementalMeshConfigRequests to
     * uniquely reference an IncrementalMeshConfigResponse. The nonce is
     * required.
     * 
* * string nonce = 4; * @return The bytes for nonce. */ com.google.protobuf.ByteString getNonceBytes(); } /** *
   * IncrementalMeshConfigResponses 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 servers and
   * clients 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 server to keep track of
   * the state of MCP clients connected to it.
   *
   * In Incremental MCP the nonce field is required and used to pair
   * IncrementalMeshConfigResponse to an IncrementalMeshConfigRequest
   * ACK or NACK.  Optionally, a response message level
   * system_version_info is present for debugging purposes only.
   * 
* * Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigResponse} */ public static final class IncrementalMeshConfigResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.IncrementalMeshConfigResponse) IncrementalMeshConfigResponseOrBuilder { private static final long serialVersionUID = 0L; // Use IncrementalMeshConfigResponse.newBuilder() to construct. private IncrementalMeshConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IncrementalMeshConfigResponse() { systemVersionInfo_ = ""; resources_ = java.util.Collections.emptyList(); removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); nonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IncrementalMeshConfigResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.Builder.class); } public static final int SYSTEM_VERSION_INFO_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object systemVersionInfo_ = ""; /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ @java.lang.Override public java.lang.String getSystemVersionInfo() { java.lang.Object ref = systemVersionInfo_; 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(); systemVersionInfo_ = s; return s; } } /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ @java.lang.Override public com.google.protobuf.ByteString getSystemVersionInfoBytes() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemVersionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List resources_; /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getResourcesList() { return resources_; } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index) { return resources_.get(index); } /** *
     * The response resources wrapped in the common MCP *Resource*
     * message. These are typed resources that match the type url in the
     * IncrementalMeshConfigRequest.
     * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int REMOVED_RESOURCES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @return A list containing the removedResources. */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { return removedResources_; } /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @return The count of removedResources. */ public int getRemovedResourcesCount() { return removedResources_.size(); } /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @param index The index of the element to return. * @return The removedResources at the given index. */ public java.lang.String getRemovedResources(int index) { return removedResources_.get(index); } /** *
     * Resources names of resources that have be deleted and to be
     * removed from the MCP Client.  Removed resources for missing
     * resources can be ignored.
     * 
* * repeated string removed_resources = 3; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(index); } public static final int NONCE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object nonce_ = ""; /** *
     * The nonce provides a way for IncrementalMeshConfigRequests to
     * uniquely reference an IncrementalMeshConfigResponse. The nonce is
     * required.
     * 
* * string nonce = 4; * @return The nonce. */ @java.lang.Override public java.lang.String getNonce() { java.lang.Object ref = nonce_; 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(); nonce_ = s; return s; } } /** *
     * The nonce provides a way for IncrementalMeshConfigRequests to
     * uniquely reference an IncrementalMeshConfigResponse. The nonce is
     * required.
     * 
* * string nonce = 4; * @return The bytes for nonce. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemVersionInfo_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(2, resources_.get(i)); } for (int i = 0; i < removedResources_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, removedResources_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemVersionInfo_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resources_.get(i)); } { int dataSize = 0; for (int i = 0; i < removedResources_.size(); i++) { dataSize += computeStringSizeNoTag(removedResources_.getRaw(i)); } size += dataSize; size += 1 * getRemovedResourcesList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse other = (istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse) obj; if (!getSystemVersionInfo() .equals(other.getSystemVersionInfo())) return false; if (!getResourcesList() .equals(other.getResourcesList())) return false; if (!getRemovedResourcesList() .equals(other.getRemovedResourcesList())) return false; if (!getNonce() .equals(other.getNonce())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SYSTEM_VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSystemVersionInfo().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (getRemovedResourcesCount() > 0) { hash = (37 * hash) + REMOVED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRemovedResourcesList().hashCode(); } hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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; } /** *
     * IncrementalMeshConfigResponses 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 servers and
     * clients 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 server to keep track of
     * the state of MCP clients connected to it.
     *
     * In Incremental MCP the nonce field is required and used to pair
     * IncrementalMeshConfigResponse to an IncrementalMeshConfigRequest
     * ACK or NACK.  Optionally, a response message level
     * system_version_info is present for debugging purposes only.
     * 
* * Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.IncrementalMeshConfigResponse) istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; systemVersionInfo_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); } else { resources_ = null; resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); nonce_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse build() { istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse buildPartial() { istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse result = new istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse result) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000002); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } } private void buildPartial0(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.systemVersionInfo_ = systemVersionInfo_; } if (((from_bitField0_ & 0x00000004) != 0)) { removedResources_.makeImmutable(); result.removedResources_ = removedResources_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nonce_ = nonce_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse) { return mergeFrom((istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse other) { if (other == istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.getDefaultInstance()) return this; if (!other.getSystemVersionInfo().isEmpty()) { systemVersionInfo_ = other.systemVersionInfo_; bitField0_ |= 0x00000001; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.removedResources_.isEmpty()) { if (removedResources_.isEmpty()) { removedResources_ = other.removedResources_; bitField0_ |= 0x00000004; } else { ensureRemovedResourcesIsMutable(); removedResources_.addAll(other.removedResources_); } onChanged(); } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { systemVersionInfo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { istio.mcp.v1alpha1.ResourceOuterClass.Resource m = input.readMessage( istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry); if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(m); } else { resourcesBuilder_.addMessage(m); } break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureRemovedResourcesIsMutable(); removedResources_.add(s); break; } // case 26 case 34: { nonce_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object systemVersionInfo_ = ""; /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ public java.lang.String getSystemVersionInfo() { java.lang.Object ref = systemVersionInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemVersionInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ public com.google.protobuf.ByteString getSystemVersionInfoBytes() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemVersionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @param value The systemVersionInfo to set. * @return This builder for chaining. */ public Builder setSystemVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } systemVersionInfo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @return This builder for chaining. */ public Builder clearSystemVersionInfo() { systemVersionInfo_ = getDefaultInstance().getSystemVersionInfo(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @param value The bytes for systemVersionInfo to set. * @return This builder for chaining. */ public Builder setSystemVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); systemVersionInfo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder> resourcesBuilder_; /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder setResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder setResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources(istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources( istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( istio.mcp.v1alpha1.ResourceOuterClass.Resource.getDefaultInstance()); } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.getDefaultInstance()); } /** *
       * The response resources wrapped in the common MCP *Resource*
       * message. These are typed resources that match the type url in the
       * IncrementalMeshConfigRequest.
       * 
* * repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.protobuf.LazyStringArrayList removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRemovedResourcesIsMutable() { if (!removedResources_.isModifiable()) { removedResources_ = new com.google.protobuf.LazyStringArrayList(removedResources_); } bitField0_ |= 0x00000004; } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @return A list containing the removedResources. */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { removedResources_.makeImmutable(); return removedResources_; } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @return The count of removedResources. */ public int getRemovedResourcesCount() { return removedResources_.size(); } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @param index The index of the element to return. * @return The removedResources at the given index. */ public java.lang.String getRemovedResources(int index) { return removedResources_.get(index); } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(index); } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @param index The index to set the value at. * @param value The removedResources to set. * @return This builder for chaining. */ public Builder setRemovedResources( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @param value The removedResources to add. * @return This builder for chaining. */ public Builder addRemovedResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @param values The removedResources to add. * @return This builder for chaining. */ public Builder addAllRemovedResources( java.lang.Iterable values) { ensureRemovedResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, removedResources_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @return This builder for chaining. */ public Builder clearRemovedResources() { removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
       * Resources names of resources that have be deleted and to be
       * removed from the MCP Client.  Removed resources for missing
       * resources can be ignored.
       * 
* * repeated string removed_resources = 3; * @param value The bytes of the removedResources to add. * @return This builder for chaining. */ public Builder addRemovedResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemovedResourcesIsMutable(); removedResources_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object nonce_ = ""; /** *
       * The nonce provides a way for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * string nonce = 4; * @return The nonce. */ public java.lang.String getNonce() { java.lang.Object ref = nonce_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nonce_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The nonce provides a way for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * 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 for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The nonce provides a way for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * string nonce = 4; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * The nonce provides a way for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * 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; bitField0_ |= 0x00000008; 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.IncrementalMeshConfigResponse) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.IncrementalMeshConfigResponse) private static final istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse(); } public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IncrementalMeshConfigResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.RequestResources) com.google.protobuf.MessageOrBuilder { /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return Whether the sinkNode field is set. */ boolean hasSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return The sinkNode. */ istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder(); /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The collection. */ java.lang.String getCollection(); /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The bytes for collection. */ com.google.protobuf.ByteString getCollectionBytes(); /** *
     * 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; */ int getInitialResourceVersionsCount(); /** *
     * 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; */ boolean containsInitialResourceVersions( java.lang.String key); /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @java.lang.Deprecated java.util.Map getInitialResourceVersions(); /** *
     * 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; */ java.util.Map 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; */ /* nullable */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, /* nullable */ 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; */ java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key); /** *
     * 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; * @return The responseNonce. */ 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; * @return The bytes for responseNonce. */ com.google.protobuf.ByteString getResponseNonceBytes(); /** *
     * 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; * @return Whether the errorDetail field is set. */ 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; * @return The errorDetail. */ 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; */ com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder(); /** *
     * 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; * @return The incremental. */ boolean getIncremental(); } /** *
   * 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 {@code istio.mcp.v1alpha1.RequestResources} */ public static final class RequestResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.RequestResources) RequestResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use RequestResources.newBuilder() to construct. private RequestResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestResources() { collection_ = ""; responseNonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestResources(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetInitialResourceVersions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.RequestResources.class, istio.mcp.v1alpha1.Mcp.RequestResources.Builder.class); } public static final int SINK_NODE_FIELD_NUMBER = 1; private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_; /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return Whether the sinkNode field is set. */ @java.lang.Override public boolean hasSinkNode() { return sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return The sinkNode. */ @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode() { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ @java.lang.Override public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } public static final int COLLECTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object collection_ = ""; /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The collection. */ @java.lang.Override public java.lang.String getCollection() { java.lang.Object ref = collection_; 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(); collection_ = s; return s; } } /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The bytes for collection. */ @java.lang.Override public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER = 3; private static final class InitialResourceVersionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> initialResourceVersions_; private com.google.protobuf.MapField internalGetInitialResourceVersions() { if (initialResourceVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } return initialResourceVersions_; } public int getInitialResourceVersionsCount() { return internalGetInitialResourceVersions().getMap().size(); } /** *
     * 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; */ @java.lang.Override public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInitialResourceVersions() { return 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; */ @java.lang.Override public java.util.Map getInitialResourceVersionsMap() { return internalGetInitialResourceVersions().getMap(); } /** *
     * 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; */ @java.lang.Override public /* nullable */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); return map.containsKey(key) ? map.get(key) : 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; */ @java.lang.Override public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RESPONSE_NONCE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object responseNonce_ = ""; /** *
     * 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; * @return The responseNonce. */ @java.lang.Override 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; } } /** *
     * 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; * @return The bytes for responseNonce. */ @java.lang.Override 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 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; * @return Whether the errorDetail field is set. */ @java.lang.Override public boolean hasErrorDetail() { return errorDetail_ != null; } /** *
     * 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; * @return The errorDetail. */ @java.lang.Override public com.google.rpc.Status getErrorDetail() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } /** *
     * 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; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } public static final int INCREMENTAL_FIELD_NUMBER = 6; private boolean incremental_ = false; /** *
     * 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; * @return The incremental. */ @java.lang.Override public boolean getIncremental() { return incremental_; } 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 (sinkNode_ != null) { output.writeMessage(1, getSinkNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInitialResourceVersions(), InitialResourceVersionsDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } if (incremental_ != false) { output.writeBool(6, incremental_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sinkNode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSinkNode()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_); } for (java.util.Map.Entry entry : internalGetInitialResourceVersions().getMap().entrySet()) { com.google.protobuf.MapEntry initialResourceVersions__ = InitialResourceVersionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, initialResourceVersions__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_); } if (errorDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getErrorDetail()); } if (incremental_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, incremental_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.RequestResources)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.RequestResources other = (istio.mcp.v1alpha1.Mcp.RequestResources) obj; if (hasSinkNode() != other.hasSinkNode()) return false; if (hasSinkNode()) { if (!getSinkNode() .equals(other.getSinkNode())) return false; } if (!getCollection() .equals(other.getCollection())) return false; if (!internalGetInitialResourceVersions().equals( other.internalGetInitialResourceVersions())) 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 (getIncremental() != other.getIncremental()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSinkNode()) { hash = (37 * hash) + SINK_NODE_FIELD_NUMBER; hash = (53 * hash) + getSinkNode().hashCode(); } hash = (37 * hash) + COLLECTION_FIELD_NUMBER; hash = (53 * hash) + getCollection().hashCode(); if (!internalGetInitialResourceVersions().getMap().isEmpty()) { hash = (37 * hash) + INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetInitialResourceVersions().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 = (37 * hash) + INCREMENTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncremental()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.RequestResources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.RequestResources 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 istio.mcp.v1alpha1.Mcp.RequestResources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.RequestResources 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 istio.mcp.v1alpha1.Mcp.RequestResources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.RequestResources 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(istio.mcp.v1alpha1.Mcp.RequestResources 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 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 {@code istio.mcp.v1alpha1.RequestResources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.RequestResources) istio.mcp.v1alpha1.Mcp.RequestResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetInitialResourceVersions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableInitialResourceVersions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.RequestResources.class, istio.mcp.v1alpha1.Mcp.RequestResources.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.RequestResources.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sinkNode_ = null; if (sinkNodeBuilder_ != null) { sinkNodeBuilder_.dispose(); sinkNodeBuilder_ = null; } collection_ = ""; internalGetMutableInitialResourceVersions().clear(); responseNonce_ = ""; errorDetail_ = null; if (errorDetailBuilder_ != null) { errorDetailBuilder_.dispose(); errorDetailBuilder_ = null; } incremental_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.RequestResources getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.RequestResources.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.RequestResources build() { istio.mcp.v1alpha1.Mcp.RequestResources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.RequestResources buildPartial() { istio.mcp.v1alpha1.Mcp.RequestResources result = new istio.mcp.v1alpha1.Mcp.RequestResources(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(istio.mcp.v1alpha1.Mcp.RequestResources result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sinkNode_ = sinkNodeBuilder_ == null ? sinkNode_ : sinkNodeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.collection_ = collection_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.initialResourceVersions_ = internalGetInitialResourceVersions(); result.initialResourceVersions_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.responseNonce_ = responseNonce_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.errorDetail_ = errorDetailBuilder_ == null ? errorDetail_ : errorDetailBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.incremental_ = incremental_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.RequestResources) { return mergeFrom((istio.mcp.v1alpha1.Mcp.RequestResources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.RequestResources other) { if (other == istio.mcp.v1alpha1.Mcp.RequestResources.getDefaultInstance()) return this; if (other.hasSinkNode()) { mergeSinkNode(other.getSinkNode()); } if (!other.getCollection().isEmpty()) { collection_ = other.collection_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableInitialResourceVersions().mergeFrom( other.internalGetInitialResourceVersions()); bitField0_ |= 0x00000004; if (!other.getResponseNonce().isEmpty()) { responseNonce_ = other.responseNonce_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasErrorDetail()) { mergeErrorDetail(other.getErrorDetail()); } if (other.getIncremental() != false) { setIncremental(other.getIncremental()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSinkNodeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { collection_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry initialResourceVersions__ = input.readMessage( InitialResourceVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableInitialResourceVersions().getMutableMap().put( initialResourceVersions__.getKey(), initialResourceVersions__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { responseNonce_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getErrorDetailFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { incremental_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_; private com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> sinkNodeBuilder_; /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return Whether the sinkNode field is set. */ public boolean hasSinkNode() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; * @return The sinkNode. */ public istio.mcp.v1alpha1.Mcp.SinkNode getSinkNode() { if (sinkNodeBuilder_ == null) { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } else { return sinkNodeBuilder_.getMessage(); } } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder setSinkNode(istio.mcp.v1alpha1.Mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sinkNode_ = value; } else { sinkNodeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder setSinkNode( istio.mcp.v1alpha1.Mcp.SinkNode.Builder builderForValue) { if (sinkNodeBuilder_ == null) { sinkNode_ = builderForValue.build(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder mergeSinkNode(istio.mcp.v1alpha1.Mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && sinkNode_ != null && sinkNode_ != istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance()) { getSinkNodeBuilder().mergeFrom(value); } else { sinkNode_ = value; } } else { sinkNodeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder clearSinkNode() { bitField0_ = (bitField0_ & ~0x00000001); sinkNode_ = null; if (sinkNodeBuilder_ != null) { sinkNodeBuilder_.dispose(); sinkNodeBuilder_ = null; } onChanged(); return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public istio.mcp.v1alpha1.Mcp.SinkNode.Builder getSinkNodeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSinkNodeFieldBuilder().getBuilder(); } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { if (sinkNodeBuilder_ != null) { return sinkNodeBuilder_.getMessageOrBuilder(); } else { return sinkNode_ == null ? istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance() : sinkNode_; } } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ private com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> getSinkNodeFieldBuilder() { if (sinkNodeBuilder_ == null) { sinkNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder>( getSinkNode(), getParentForChildren(), isClean()); sinkNode_ = null; } return sinkNodeBuilder_; } private java.lang.Object collection_ = ""; /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @return The collection. */ public java.lang.String getCollection() { java.lang.Object ref = collection_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collection_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @return The bytes for collection. */ public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @param value The collection to set. * @return This builder for chaining. */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @return This builder for chaining. */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @param value The bytes for collection to set. * @return This builder for chaining. */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> initialResourceVersions_; private com.google.protobuf.MapField internalGetInitialResourceVersions() { if (initialResourceVersions_ == null) { return com.google.protobuf.MapField.emptyMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } return initialResourceVersions_; } private com.google.protobuf.MapField internalGetMutableInitialResourceVersions() { if (initialResourceVersions_ == null) { initialResourceVersions_ = com.google.protobuf.MapField.newMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } if (!initialResourceVersions_.isMutable()) { initialResourceVersions_ = initialResourceVersions_.copy(); } bitField0_ |= 0x00000004; onChanged(); return initialResourceVersions_; } public int getInitialResourceVersionsCount() { return internalGetInitialResourceVersions().getMap().size(); } /** *
       * 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; */ @java.lang.Override public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInitialResourceVersions() { return 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; */ @java.lang.Override public java.util.Map getInitialResourceVersionsMap() { return internalGetInitialResourceVersions().getMap(); } /** *
       * 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; */ @java.lang.Override public /* nullable */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); return map.containsKey(key) ? map.get(key) : 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; */ @java.lang.Override public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInitialResourceVersions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearInitialResourceVersions() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableInitialResourceVersions().getMutableMap() .clear(); return this; } /** *
       * 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 Builder removeInitialResourceVersions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableInitialResourceVersions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInitialResourceVersions() { bitField0_ |= 0x00000004; return internalGetMutableInitialResourceVersions().getMutableMap(); } /** *
       * 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 Builder putInitialResourceVersions( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableInitialResourceVersions().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
       * 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 Builder putAllInitialResourceVersions( java.util.Map values) { internalGetMutableInitialResourceVersions().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object responseNonce_ = ""; /** *
       * 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; * @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; } } /** *
       * 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; * @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; } } /** *
       * 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; * @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; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearResponseNonce() { responseNonce_ = getDefaultInstance().getResponseNonce(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * 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; * @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; bitField0_ |= 0x00000008; 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 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; * @return Whether the errorDetail field is set. */ public boolean hasErrorDetail() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * 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; * @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 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 Builder setErrorDetail(com.google.rpc.Status value) { if (errorDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errorDetail_ = value; } else { errorDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * 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 Builder setErrorDetail( com.google.rpc.Status.Builder builderForValue) { if (errorDetailBuilder_ == null) { errorDetail_ = builderForValue.build(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * 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 Builder mergeErrorDetail(com.google.rpc.Status value) { if (errorDetailBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && errorDetail_ != null && errorDetail_ != com.google.rpc.Status.getDefaultInstance()) { getErrorDetailBuilder().mergeFrom(value); } else { errorDetail_ = value; } } else { errorDetailBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * 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 Builder clearErrorDetail() { bitField0_ = (bitField0_ & ~0x00000010); errorDetail_ = null; if (errorDetailBuilder_ != null) { errorDetailBuilder_.dispose(); errorDetailBuilder_ = null; } onChanged(); return this; } /** *
       * 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 com.google.rpc.Status.Builder getErrorDetailBuilder() { bitField0_ |= 0x00000010; onChanged(); return getErrorDetailFieldBuilder().getBuilder(); } /** *
       * 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 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 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; */ 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_; } private boolean incremental_ ; /** *
       * 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; * @return The incremental. */ @java.lang.Override public boolean getIncremental() { return incremental_; } /** *
       * 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; * @param value The incremental to set. * @return This builder for chaining. */ public Builder setIncremental(boolean value) { incremental_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearIncremental() { bitField0_ = (bitField0_ & ~0x00000020); incremental_ = false; 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.RequestResources) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.RequestResources) private static final istio.mcp.v1alpha1.Mcp.RequestResources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.RequestResources(); } public static istio.mcp.v1alpha1.Mcp.RequestResources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestResources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.RequestResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.Resources) com.google.protobuf.MessageOrBuilder { /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ java.lang.String getSystemVersionInfo(); /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ com.google.protobuf.ByteString getSystemVersionInfoBytes(); /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The collection. */ java.lang.String getCollection(); /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The bytes for collection. */ com.google.protobuf.ByteString getCollectionBytes(); /** *
     * 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 [(.gogoproto.nullable) = false]; */ java.util.List 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 [(.gogoproto.nullable) = false]; */ istio.mcp.v1alpha1.ResourceOuterClass.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 [(.gogoproto.nullable) = false]; */ 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 [(.gogoproto.nullable) = false]; */ java.util.List 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 [(.gogoproto.nullable) = false]; */ istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( 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; * @return A list containing the removedResources. */ java.util.List 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; * @return The count of removedResources. */ 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; * @param index The index of the element to return. * @return The removedResources at the given index. */ 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; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ com.google.protobuf.ByteString getRemovedResourcesBytes(int index); /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; * @return The nonce. */ java.lang.String getNonce(); /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; * @return The bytes for nonce. */ com.google.protobuf.ByteString getNonceBytes(); /** *
     * This resource response is an incremental update. The source should only send
     * incremental updates if the sink requested them.
     * 
* * bool incremental = 6; * @return The incremental. */ boolean getIncremental(); } /** *
   * 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 {@code istio.mcp.v1alpha1.Resources} */ public static final class Resources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.Resources) ResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use Resources.newBuilder() to construct. private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resources() { systemVersionInfo_ = ""; collection_ = ""; resources_ = java.util.Collections.emptyList(); removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); nonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Resources(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.Resources.class, istio.mcp.v1alpha1.Mcp.Resources.Builder.class); } public static final int SYSTEM_VERSION_INFO_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object systemVersionInfo_ = ""; /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ @java.lang.Override public java.lang.String getSystemVersionInfo() { java.lang.Object ref = systemVersionInfo_; 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(); systemVersionInfo_ = s; return s; } } /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ @java.lang.Override public com.google.protobuf.ByteString getSystemVersionInfoBytes() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemVersionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object collection_ = ""; /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The collection. */ @java.lang.Override public java.lang.String getCollection() { java.lang.Object ref = collection_; 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(); collection_ = s; return s; } } /** *
     * Type of resource collection that is being requested, e.g.
     *
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; * @return The bytes for collection. */ @java.lang.Override public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List resources_; /** *
     * 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 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getResourcesList() { return resources_; } /** *
     * 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 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
     * 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 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** *
     * 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 [(.gogoproto.nullable) = false]; */ @java.lang.Override public istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index) { return resources_.get(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 [(.gogoproto.nullable) = false]; */ @java.lang.Override public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int REMOVED_RESOURCES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * 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; * @return A list containing the removedResources. */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { return removedResources_; } /** *
     * 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; * @return The count of removedResources. */ public int getRemovedResourcesCount() { return removedResources_.size(); } /** *
     * 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; * @param index The index of the element to return. * @return The removedResources at the given index. */ public java.lang.String getRemovedResources(int index) { return removedResources_.get(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; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(index); } public static final int NONCE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object nonce_ = ""; /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; * @return The nonce. */ @java.lang.Override public java.lang.String getNonce() { java.lang.Object ref = nonce_; 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(); nonce_ = s; return s; } } /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; * @return The bytes for nonce. */ @java.lang.Override 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; } } public static final int INCREMENTAL_FIELD_NUMBER = 6; private boolean incremental_ = false; /** *
     * This resource response is an incremental update. The source should only send
     * incremental updates if the sink requested them.
     * 
* * bool incremental = 6; * @return The incremental. */ @java.lang.Override public boolean getIncremental() { return incremental_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemVersionInfo_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(3, resources_.get(i)); } for (int i = 0; i < removedResources_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, removedResources_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nonce_); } if (incremental_ != false) { output.writeBool(6, incremental_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemVersionInfo_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, resources_.get(i)); } { int dataSize = 0; for (int i = 0; i < removedResources_.size(); i++) { dataSize += computeStringSizeNoTag(removedResources_.getRaw(i)); } size += dataSize; size += 1 * getRemovedResourcesList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nonce_); } if (incremental_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, incremental_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof istio.mcp.v1alpha1.Mcp.Resources)) { return super.equals(obj); } istio.mcp.v1alpha1.Mcp.Resources other = (istio.mcp.v1alpha1.Mcp.Resources) obj; if (!getSystemVersionInfo() .equals(other.getSystemVersionInfo())) return false; if (!getCollection() .equals(other.getCollection())) return false; if (!getResourcesList() .equals(other.getResourcesList())) return false; if (!getRemovedResourcesList() .equals(other.getRemovedResourcesList())) return false; if (!getNonce() .equals(other.getNonce())) return false; if (getIncremental() != other.getIncremental()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SYSTEM_VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSystemVersionInfo().hashCode(); hash = (37 * hash) + COLLECTION_FIELD_NUMBER; hash = (53 * hash) + getCollection().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (getRemovedResourcesCount() > 0) { hash = (37 * hash) + REMOVED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRemovedResourcesList().hashCode(); } hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (37 * hash) + INCREMENTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncremental()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.Resources 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 istio.mcp.v1alpha1.Mcp.Resources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.Resources 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 istio.mcp.v1alpha1.Mcp.Resources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static istio.mcp.v1alpha1.Mcp.Resources 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(istio.mcp.v1alpha1.Mcp.Resources 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; } /** *
     * 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 {@code istio.mcp.v1alpha1.Resources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.Resources) istio.mcp.v1alpha1.Mcp.ResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( istio.mcp.v1alpha1.Mcp.Resources.class, istio.mcp.v1alpha1.Mcp.Resources.Builder.class); } // Construct using istio.mcp.v1alpha1.Mcp.Resources.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; systemVersionInfo_ = ""; collection_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); } else { resources_ = null; resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); nonce_ = ""; incremental_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_descriptor; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.Resources getDefaultInstanceForType() { return istio.mcp.v1alpha1.Mcp.Resources.getDefaultInstance(); } @java.lang.Override public istio.mcp.v1alpha1.Mcp.Resources build() { istio.mcp.v1alpha1.Mcp.Resources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.Resources buildPartial() { istio.mcp.v1alpha1.Mcp.Resources result = new istio.mcp.v1alpha1.Mcp.Resources(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(istio.mcp.v1alpha1.Mcp.Resources result) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000004); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } } private void buildPartial0(istio.mcp.v1alpha1.Mcp.Resources result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.systemVersionInfo_ = systemVersionInfo_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.collection_ = collection_; } if (((from_bitField0_ & 0x00000008) != 0)) { removedResources_.makeImmutable(); result.removedResources_ = removedResources_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.nonce_ = nonce_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.incremental_ = incremental_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof istio.mcp.v1alpha1.Mcp.Resources) { return mergeFrom((istio.mcp.v1alpha1.Mcp.Resources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.Resources other) { if (other == istio.mcp.v1alpha1.Mcp.Resources.getDefaultInstance()) return this; if (!other.getSystemVersionInfo().isEmpty()) { systemVersionInfo_ = other.systemVersionInfo_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getCollection().isEmpty()) { collection_ = other.collection_; bitField0_ |= 0x00000002; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.removedResources_.isEmpty()) { if (removedResources_.isEmpty()) { removedResources_ = other.removedResources_; bitField0_ |= 0x00000008; } else { ensureRemovedResourcesIsMutable(); removedResources_.addAll(other.removedResources_); } onChanged(); } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; bitField0_ |= 0x00000010; onChanged(); } if (other.getIncremental() != false) { setIncremental(other.getIncremental()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { systemVersionInfo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { collection_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { istio.mcp.v1alpha1.ResourceOuterClass.Resource m = input.readMessage( istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry); if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(m); } else { resourcesBuilder_.addMessage(m); } break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureRemovedResourcesIsMutable(); removedResources_.add(s); break; } // case 34 case 42: { nonce_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { incremental_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object systemVersionInfo_ = ""; /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ public java.lang.String getSystemVersionInfo() { java.lang.Object ref = systemVersionInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemVersionInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ public com.google.protobuf.ByteString getSystemVersionInfoBytes() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemVersionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @param value The systemVersionInfo to set. * @return This builder for chaining. */ public Builder setSystemVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } systemVersionInfo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @return This builder for chaining. */ public Builder clearSystemVersionInfo() { systemVersionInfo_ = getDefaultInstance().getSystemVersionInfo(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; * @param value The bytes for systemVersionInfo to set. * @return This builder for chaining. */ public Builder setSystemVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); systemVersionInfo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object collection_ = ""; /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @return The collection. */ public java.lang.String getCollection() { java.lang.Object ref = collection_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collection_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @return The bytes for collection. */ public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @param value The collection to set. * @return This builder for chaining. */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @return This builder for chaining. */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       *
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; * @param value The bytes for collection to set. * @return This builder for chaining. */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder> resourcesBuilder_; /** *
       * 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 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(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 [(.gogoproto.nullable) = false]; */ public Builder setResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder setResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder addResources(istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder addResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder addResources( istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder addResources( int index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(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 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(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 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( istio.mcp.v1alpha1.ResourceOuterClass.Resource.getDefaultInstance()); } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, istio.mcp.v1alpha1.ResourceOuterClass.Resource.getDefaultInstance()); } /** *
       * 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 [(.gogoproto.nullable) = false]; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< istio.mcp.v1alpha1.ResourceOuterClass.Resource, istio.mcp.v1alpha1.ResourceOuterClass.Resource.Builder, istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.protobuf.LazyStringArrayList removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRemovedResourcesIsMutable() { if (!removedResources_.isModifiable()) { removedResources_ = new com.google.protobuf.LazyStringArrayList(removedResources_); } bitField0_ |= 0x00000008; } /** *
       * 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; * @return A list containing the removedResources. */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { removedResources_.makeImmutable(); return removedResources_; } /** *
       * 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; * @return The count of removedResources. */ public int getRemovedResourcesCount() { return removedResources_.size(); } /** *
       * 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; * @param index The index of the element to return. * @return The removedResources at the given index. */ public java.lang.String getRemovedResources(int index) { return removedResources_.get(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; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(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; * @param index The index to set the value at. * @param value The removedResources to set. * @return This builder for chaining. */ public Builder setRemovedResources( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * 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; * @param value The removedResources to add. * @return This builder for chaining. */ public Builder addRemovedResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * 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; * @param values The removedResources to add. * @return This builder for chaining. */ public Builder addAllRemovedResources( java.lang.Iterable values) { ensureRemovedResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, removedResources_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearRemovedResources() { removedResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
       * 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; * @param value The bytes of the removedResources to add. * @return This builder for chaining. */ public Builder addRemovedResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemovedResourcesIsMutable(); removedResources_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object nonce_ = ""; /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; * @return The nonce. */ public java.lang.String getNonce() { java.lang.Object ref = nonce_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nonce_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; * @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; } } /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; * @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; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; * @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; bitField0_ |= 0x00000010; onChanged(); return this; } private boolean incremental_ ; /** *
       * This resource response is an incremental update. The source should only send
       * incremental updates if the sink requested them.
       * 
* * bool incremental = 6; * @return The incremental. */ @java.lang.Override public boolean getIncremental() { return incremental_; } /** *
       * This resource response is an incremental update. The source should only send
       * incremental updates if the sink requested them.
       * 
* * bool incremental = 6; * @param value The incremental to set. * @return This builder for chaining. */ public Builder setIncremental(boolean value) { incremental_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * This resource response is an incremental update. The source should only send
       * incremental updates if the sink requested them.
       * 
* * bool incremental = 6; * @return This builder for chaining. */ public Builder clearIncremental() { bitField0_ = (bitField0_ & ~0x00000020); incremental_ = false; 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.Resources) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.Resources) private static final istio.mcp.v1alpha1.Mcp.Resources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.Resources(); } public static istio.mcp.v1alpha1.Mcp.Resources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Resources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public istio.mcp.v1alpha1.Mcp.Resources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_SinkNode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_SinkNode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_SinkNode_AnnotationsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_SinkNode_AnnotationsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_MeshConfigResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_MeshConfigResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_RequestResources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_RequestResources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_istio_mcp_v1alpha1_Resources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_istio_mcp_v1alpha1_Resources_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\026mcp/v1alpha1/mcp.proto\022\022istio.mcp.v1al" + "pha1\032\027google/rpc/status.proto\032\024gogoproto" + "/gogo.proto\032\033mcp/v1alpha1/resource.proto" + "\"\216\001\n\010SinkNode\022\n\n\002id\030\001 \001(\t\022B\n\013annotations" + "\030\002 \003(\0132-.istio.mcp.v1alpha1.SinkNode.Ann" + "otationsEntry\0322\n\020AnnotationsEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\256\001\n\021MeshConfig" + "Request\022\024\n\014version_info\030\001 \001(\t\022/\n\tsink_no" + "de\030\002 \001(\0132\034.istio.mcp.v1alpha1.SinkNode\022\020" + "\n\010type_url\030\003 \001(\t\022\026\n\016response_nonce\030\004 \001(\t" + "\022(\n\014error_detail\030\005 \001(\0132\022.google.rpc.Stat" + "us\"\202\001\n\022MeshConfigResponse\022\024\n\014version_inf" + "o\030\001 \001(\t\0225\n\tresources\030\002 \003(\0132\034.istio.mcp.v" + "1alpha1.ResourceB\004\310\336\037\000\022\020\n\010type_url\030\003 \001(\t" + "\022\r\n\005nonce\030\004 \001(\t\"\325\002\n\034IncrementalMeshConfi" + "gRequest\022/\n\tsink_node\030\001 \001(\0132\034.istio.mcp." + "v1alpha1.SinkNode\022\020\n\010type_url\030\002 \001(\t\022p\n\031i" + "nitial_resource_versions\030\003 \003(\0132M.istio.m" + "cp.v1alpha1.IncrementalMeshConfigRequest" + ".InitialResourceVersionsEntry\022\026\n\016respons" + "e_nonce\030\004 \001(\t\022(\n\014error_detail\030\005 \001(\0132\022.go" + "ogle.rpc.Status\032>\n\034InitialResourceVersio" + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + "\235\001\n\035IncrementalMeshConfigResponse\022\033\n\023sys" + "tem_version_info\030\001 \001(\t\0225\n\tresources\030\002 \003(" + "\0132\034.istio.mcp.v1alpha1.ResourceB\004\310\336\037\000\022\031\n" + "\021removed_resources\030\003 \003(\t\022\r\n\005nonce\030\004 \001(\t\"" + "\324\002\n\020RequestResources\022/\n\tsink_node\030\001 \001(\0132" + "\034.istio.mcp.v1alpha1.SinkNode\022\022\n\ncollect" + "ion\030\002 \001(\t\022d\n\031initial_resource_versions\030\003" + " \003(\0132A.istio.mcp.v1alpha1.RequestResourc" + "es.InitialResourceVersionsEntry\022\026\n\016respo" + "nse_nonce\030\004 \001(\t\022(\n\014error_detail\030\005 \001(\0132\022." + "google.rpc.Status\022\023\n\013incremental\030\006 \001(\010\032>" + "\n\034InitialResourceVersionsEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\262\001\n\tResources\022\033\n\023" + "system_version_info\030\001 \001(\t\022\022\n\ncollection\030" + "\002 \001(\t\0225\n\tresources\030\003 \003(\0132\034.istio.mcp.v1a" + "lpha1.ResourceB\004\310\336\037\000\022\031\n\021removed_resource" + "s\030\004 \003(\t\022\r\n\005nonce\030\005 \001(\t\022\023\n\013incremental\030\006 " + "\001(\0102\235\002\n\033AggregatedMeshConfigService\022p\n\031S" + "treamAggregatedResources\022%.istio.mcp.v1a" + "lpha1.MeshConfigRequest\032&.istio.mcp.v1al" + "pha1.MeshConfigResponse\"\000(\0010\001\022\213\001\n\036Increm" + "entalAggregatedResources\0220.istio.mcp.v1a" + "lpha1.IncrementalMeshConfigRequest\0321.ist" + "io.mcp.v1alpha1.IncrementalMeshConfigRes" + "ponse\"\000(\0010\0012v\n\016ResourceSource\022d\n\027Establi" + "shResourceStream\022$.istio.mcp.v1alpha1.Re" + "questResources\032\035.istio.mcp.v1alpha1.Reso" + "urces\"\000(\0010\0012t\n\014ResourceSink\022d\n\027Establish" + "ResourceStream\022\035.istio.mcp.v1alpha1.Reso" + "urces\032$.istio.mcp.v1alpha1.RequestResour" + "ces\"\000(\0010\001B\037Z\031istio.io/api/mcp/v1alpha1\250\342" + "\036\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.rpc.StatusProto.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), istio.mcp.v1alpha1.ResourceOuterClass.getDescriptor(), }); internal_static_istio_mcp_v1alpha1_SinkNode_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_istio_mcp_v1alpha1_SinkNode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_SinkNode_descriptor, new java.lang.String[] { "Id", "Annotations", }); internal_static_istio_mcp_v1alpha1_SinkNode_AnnotationsEntry_descriptor = internal_static_istio_mcp_v1alpha1_SinkNode_descriptor.getNestedTypes().get(0); internal_static_istio_mcp_v1alpha1_SinkNode_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_SinkNode_AnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor, new java.lang.String[] { "VersionInfo", "SinkNode", "TypeUrl", "ResponseNonce", "ErrorDetail", }); internal_static_istio_mcp_v1alpha1_MeshConfigResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_istio_mcp_v1alpha1_MeshConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_MeshConfigResponse_descriptor, new java.lang.String[] { "VersionInfo", "Resources", "TypeUrl", "Nonce", }); internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor, new java.lang.String[] { "SinkNode", "TypeUrl", "InitialResourceVersions", "ResponseNonce", "ErrorDetail", }); internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_descriptor = internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor.getNestedTypes().get(0); internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor, new java.lang.String[] { "SystemVersionInfo", "Resources", "RemovedResources", "Nonce", }); internal_static_istio_mcp_v1alpha1_RequestResources_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_istio_mcp_v1alpha1_RequestResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_RequestResources_descriptor, new java.lang.String[] { "SinkNode", "Collection", "InitialResourceVersions", "ResponseNonce", "ErrorDetail", "Incremental", }); internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_descriptor = internal_static_istio_mcp_v1alpha1_RequestResources_descriptor.getNestedTypes().get(0); internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_istio_mcp_v1alpha1_Resources_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_istio_mcp_v1alpha1_Resources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_istio_mcp_v1alpha1_Resources_descriptor, new java.lang.String[] { "SystemVersionInfo", "Collection", "Resources", "RemovedResources", "Nonce", "Incremental", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.equalAll); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.rpc.StatusProto.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); istio.mcp.v1alpha1.ResourceOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy