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

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

// 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; */ java.lang.String getId(); /** *
     * An opaque identifier for the MCP node.
     * 
* * string id = 1; */ 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; */ java.lang.String getAnnotationsOrDefault( java.lang.String key, 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SinkNode( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { annotations_ = com.google.protobuf.MapField.newMapField( AnnotationsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry annotations__ = input.readMessage( AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); annotations_.getMutableMap().put( annotations__.getKey(), annotations__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return 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; private volatile java.lang.Object id_; /** *
     * An opaque identifier for the MCP node.
     * 
* * string id = 1; */ 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; */ 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, ""); } 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; */ public boolean containsAnnotations( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAnnotations().getMap().containsKey(key); } /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** *
     * Opaque annotations extending the node identifier.
     * 
* * map<string, string> annotations = 2; */ public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } 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; */ public java.lang.String getAnnotationsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } 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 (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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); int from_bitField0_ = bitField0_; result.id_ = id_; result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } internalGetMutableAnnotations().mergeFrom( other.internalGetAnnotations()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.SinkNode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.SinkNode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; */ 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; */ 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; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * An opaque identifier for the MCP node.
       * 
* * string id = 1; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; 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() { onChanged();; if (annotations_ == null) { annotations_ = com.google.protobuf.MapField.newMapField( AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } return annotations_; } public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public boolean containsAnnotations( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAnnotations().getMap().containsKey(key); } /** * Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public java.lang.String getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } 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; */ public java.lang.String getAnnotationsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAnnotations() { 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 java.lang.NullPointerException(); } internalGetMutableAnnotations().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { 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 java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAnnotations().getMutableMap() .put(key, value); return this; } /** *
       * Opaque annotations extending the node identifier.
       * 
* * map<string, string> annotations = 2; */ public Builder putAllAnnotations( java.util.Map values) { internalGetMutableAnnotations().getMutableMap() .putAll(values); 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 { return new SinkNode(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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; */ 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; */ com.google.protobuf.ByteString getVersionInfoBytes(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ boolean hasSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MeshConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); versionInfo_ = s; break; } case 18: { istio.mcp.v1alpha1.Mcp.SinkNode.Builder subBuilder = null; if (sinkNode_ != null) { subBuilder = sinkNode_.toBuilder(); } sinkNode_ = input.readMessage(istio.mcp.v1alpha1.Mcp.SinkNode.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sinkNode_); sinkNode_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); typeUrl_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); responseNonce_ = s; break; } case 42: { com.google.rpc.Status.Builder subBuilder = null; if (errorDetail_ != null) { subBuilder = errorDetail_.toBuilder(); } errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorDetail_); errorDetail_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return 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; 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; */ 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; */ 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; */ public boolean hasSinkNode() { return sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ 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; */ public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return getSinkNode(); } public static final int TYPE_URL_FIELD_NUMBER = 3; private volatile java.lang.Object typeUrl_; /** *
     * Type of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * string type_url = 3; */ 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; */ public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESPONSE_NONCE_FIELD_NUMBER = 4; private volatile java.lang.Object responseNonce_; /** *
     * The nonce corresponding to MeshConfigResponse being
     * ACK/NACKed. See above discussion on version_info and the
     * MeshConfigResponse nonce comment. This may be empty if no nonce is
     * available, e.g. at startup.
     * 
* * string response_nonce = 4; */ 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; */ 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; */ 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; */ public com.google.rpc.Status getErrorDetail() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return getErrorDetail(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVersionInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_); } if (sinkNode_ != null) { output.writeMessage(2, getSinkNode()); } if (!getTypeUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_); } if (!getResponseNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getVersionInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_); } if (sinkNode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSinkNode()); } if (!getTypeUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_); } if (!getResponseNonceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_); } if (errorDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getErrorDetail()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getVersionInfo().hashCode(); if (hasSinkNode()) { hash = (37 * hash) + SINK_NODE_FIELD_NUMBER; hash = (53 * hash) + getSinkNode().hashCode(); } hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getTypeUrl().hashCode(); hash = (37 * hash) + RESPONSE_NONCE_FIELD_NUMBER; hash = (53 * hash) + getResponseNonce().hashCode(); if (hasErrorDetail()) { hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getErrorDetail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static 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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); versionInfo_ = ""; if (sinkNodeBuilder_ == null) { sinkNode_ = null; } else { sinkNode_ = null; sinkNodeBuilder_ = null; } typeUrl_ = ""; responseNonce_ = ""; if (errorDetailBuilder_ == null) { errorDetail_ = null; } else { errorDetail_ = null; errorDetailBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return 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); result.versionInfo_ = versionInfo_; if (sinkNodeBuilder_ == null) { result.sinkNode_ = sinkNode_; } else { result.sinkNode_ = sinkNodeBuilder_.build(); } result.typeUrl_ = typeUrl_; result.responseNonce_ = responseNonce_; if (errorDetailBuilder_ == null) { result.errorDetail_ = errorDetail_; } else { result.errorDetail_ = errorDetailBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } if (other.hasSinkNode()) { mergeSinkNode(other.getSinkNode()); } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; onChanged(); } if (!other.getResponseNonce().isEmpty()) { responseNonce_ = other.responseNonce_; onChanged(); } if (other.hasErrorDetail()) { mergeErrorDetail(other.getErrorDetail()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.MeshConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.MeshConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object versionInfo_ = ""; /** *
       * The version_info provided in the request messages will be the
       * version_info received with the most recent successfully processed
       * response or empty on the first request. It is expected that no
       * new request is sent after a response is received until the client
       * instance is ready to ACK/NACK the new configuration. ACK/NACK
       * takes place by returning the new API config version as applied or
       * the previous API config version respectively. Each type_url (see
       * below) has an independent version associated with it.
       * 
* * string version_info = 1; */ 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; */ 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; */ public Builder setVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionInfo_ = value; onChanged(); return this; } /** *
       * The version_info provided in the request messages will be the
       * version_info received with the most recent successfully processed
       * response or empty on the first request. It is expected that no
       * new request is sent after a response is received until the client
       * instance is ready to ACK/NACK the new configuration. ACK/NACK
       * takes place by returning the new API config version as applied or
       * the previous API config version respectively. Each type_url (see
       * below) has an independent version associated with it.
       * 
* * string version_info = 1; */ public Builder clearVersionInfo() { versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** *
       * The version_info provided in the request messages will be the
       * version_info received with the most recent successfully processed
       * response or empty on the first request. It is expected that no
       * new request is sent after a response is received until the client
       * instance is ready to ACK/NACK the new configuration. ACK/NACK
       * takes place by returning the new API config version as applied or
       * the previous API config version respectively. Each type_url (see
       * below) has an independent version associated with it.
       * 
* * string version_info = 1; */ public Builder setVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionInfo_ = value; 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; */ public boolean hasSinkNode() { return sinkNodeBuilder_ != null || sinkNode_ != null; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ 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; onChanged(); } else { sinkNodeBuilder_.setMessage(value); } 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(); onChanged(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } 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 (sinkNode_ != null) { sinkNode_ = istio.mcp.v1alpha1.Mcp.SinkNode.newBuilder(sinkNode_).mergeFrom(value).buildPartial(); } else { sinkNode_ = value; } onChanged(); } else { sinkNodeBuilder_.mergeFrom(value); } return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder clearSinkNode() { if (sinkNodeBuilder_ == null) { sinkNode_ = null; onChanged(); } else { sinkNode_ = null; sinkNodeBuilder_ = null; } return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public istio.mcp.v1alpha1.Mcp.SinkNode.Builder getSinkNodeBuilder() { 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; */ 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; */ 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; */ public Builder setTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeUrl_ = value; onChanged(); return this; } /** *
       * Type of the resource that is being requested, e.g.
       * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
       * 
* * string type_url = 3; */ public Builder clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); onChanged(); return this; } /** *
       * Type of the resource that is being requested, e.g.
       * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
       * 
* * string type_url = 3; */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeUrl_ = value; onChanged(); return this; } private java.lang.Object responseNonce_ = ""; /** *
       * The nonce corresponding to MeshConfigResponse being
       * ACK/NACKed. See above discussion on version_info and the
       * MeshConfigResponse nonce comment. This may be empty if no nonce is
       * available, e.g. at startup.
       * 
* * string response_nonce = 4; */ 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; */ 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; */ public Builder setResponseNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } responseNonce_ = value; onChanged(); return this; } /** *
       * The nonce corresponding to MeshConfigResponse being
       * ACK/NACKed. See above discussion on version_info and the
       * MeshConfigResponse nonce comment. This may be empty if no nonce is
       * available, e.g. at startup.
       * 
* * string response_nonce = 4; */ public Builder clearResponseNonce() { responseNonce_ = getDefaultInstance().getResponseNonce(); onChanged(); return this; } /** *
       * The nonce corresponding to MeshConfigResponse being
       * ACK/NACKed. See above discussion on version_info and the
       * MeshConfigResponse nonce comment. This may be empty if no nonce is
       * available, e.g. at startup.
       * 
* * string response_nonce = 4; */ public Builder setResponseNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); responseNonce_ = value; onChanged(); return this; } private com.google.rpc.Status errorDetail_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorDetailBuilder_; /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public boolean hasErrorDetail() { return errorDetailBuilder_ != null || errorDetail_ != null; } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.Status getErrorDetail() { if (errorDetailBuilder_ == null) { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } else { return errorDetailBuilder_.getMessage(); } } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder setErrorDetail(com.google.rpc.Status value) { if (errorDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errorDetail_ = value; onChanged(); } else { errorDetailBuilder_.setMessage(value); } return this; } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder setErrorDetail( com.google.rpc.Status.Builder builderForValue) { if (errorDetailBuilder_ == null) { errorDetail_ = builderForValue.build(); onChanged(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder mergeErrorDetail(com.google.rpc.Status value) { if (errorDetailBuilder_ == null) { if (errorDetail_ != null) { errorDetail_ = com.google.rpc.Status.newBuilder(errorDetail_).mergeFrom(value).buildPartial(); } else { errorDetail_ = value; } onChanged(); } else { errorDetailBuilder_.mergeFrom(value); } return this; } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public Builder clearErrorDetail() { if (errorDetailBuilder_ == null) { errorDetail_ = null; onChanged(); } else { errorDetail_ = null; errorDetailBuilder_ = null; } return this; } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.Status.Builder getErrorDetailBuilder() { onChanged(); return getErrorDetailFieldBuilder().getBuilder(); } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { if (errorDetailBuilder_ != null) { return errorDetailBuilder_.getMessageOrBuilder(); } else { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } } /** *
       * This is populated when the previous MeshConfigResponse failed to
       * update configuration. The *message* field in *error_details*
       * provides the client internal exception related to the failure. It
       * is only intended for consumption during manual debugging, the
       * string provided is not guaranteed to be stable across client
       * versions.
       * 
* * .google.rpc.Status error_detail = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorDetailFieldBuilder() { if (errorDetailBuilder_ == null) { errorDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( getErrorDetail(), getParentForChildren(), isClean()); errorDetail_ = null; } return errorDetailBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:istio.mcp.v1alpha1.MeshConfigRequest) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.MeshConfigRequest) private static final 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 { return new MeshConfigRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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; */ java.lang.String getVersionInfo(); /** *
     * The version of the response data.
     * 
* * string version_info = 1; */ 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; */ 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; */ 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; */ 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; */ 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MeshConfigResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); versionInfo_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); typeUrl_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); nonce_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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; private volatile java.lang.Object versionInfo_; /** *
     * The version of the response data.
     * 
* * string version_info = 1; */ 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; */ 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; 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]; */ 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]; */ 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]; */ 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]; */ 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]; */ public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int TYPE_URL_FIELD_NUMBER = 3; private volatile java.lang.Object typeUrl_; /** *
     * Type URL for resources wrapped in the provided resources(s). This
     * must be consistent with the type_url in the wrapper messages if
     * resources is non-empty.
     * 
* * string type_url = 3; */ 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; */ public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NONCE_FIELD_NUMBER = 4; private volatile java.lang.Object nonce_; /** *
     * The nonce provides a way to explicitly ack a specific
     * MeshConfigResponse in a following MeshConfigRequest. Additional
     * messages may have been sent by client to the management server for
     * the previous version on the stream prior to this
     * MeshConfigResponse, that were unprocessed at response send
     * time. The nonce allows the management server to ignore any
     * further MeshConfigRequests for the previous version until a
     * MeshConfigRequest bearing the nonce.
     * 
* * string nonce = 4; */ 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; */ public com.google.protobuf.ByteString getNonceBytes() { java.lang.Object ref = nonce_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nonce_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVersionInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(2, resources_.get(i)); } if (!getTypeUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_); } if (!getNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getVersionInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resources_.get(i)); } if (!getTypeUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_); } if (!getNonceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getVersionInfo().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getTypeUrl().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static 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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); versionInfo_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } 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); int from_bitField0_ = bitField0_; result.versionInfo_ = versionInfo_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.typeUrl_ = typeUrl_; result.nonce_ = nonce_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; onChanged(); } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.MeshConfigResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.MeshConfigResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object versionInfo_ = ""; /** *
       * The version of the response data.
       * 
* * string version_info = 1; */ 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; */ 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; */ public Builder setVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionInfo_ = value; onChanged(); return this; } /** *
       * The version of the response data.
       * 
* * string version_info = 1; */ public Builder clearVersionInfo() { versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** *
       * The version of the response data.
       * 
* * string version_info = 1; */ public Builder setVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionInfo_ = value; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 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; */ 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; */ 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; */ public Builder setTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeUrl_ = value; onChanged(); return this; } /** *
       * Type URL for resources wrapped in the provided resources(s). This
       * must be consistent with the type_url in the wrapper messages if
       * resources is non-empty.
       * 
* * string type_url = 3; */ public Builder clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); onChanged(); return this; } /** *
       * Type URL for resources wrapped in the provided resources(s). This
       * must be consistent with the type_url in the wrapper messages if
       * resources is non-empty.
       * 
* * string type_url = 3; */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeUrl_ = value; onChanged(); return this; } private java.lang.Object nonce_ = ""; /** *
       * The nonce provides a way to explicitly ack a specific
       * MeshConfigResponse in a following MeshConfigRequest. Additional
       * messages may have been sent by client to the management server for
       * the previous version on the stream prior to this
       * MeshConfigResponse, that were unprocessed at response send
       * time. The nonce allows the management server to ignore any
       * further MeshConfigRequests for the previous version until a
       * MeshConfigRequest bearing the nonce.
       * 
* * string nonce = 4; */ 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; */ 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; */ public Builder setNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** *
       * The nonce provides a way to explicitly ack a specific
       * MeshConfigResponse in a following MeshConfigRequest. Additional
       * messages may have been sent by client to the management server for
       * the previous version on the stream prior to this
       * MeshConfigResponse, that were unprocessed at response send
       * time. The nonce allows the management server to ignore any
       * further MeshConfigRequests for the previous version until a
       * MeshConfigRequest bearing the nonce.
       * 
* * string nonce = 4; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } /** *
       * The nonce provides a way to explicitly ack a specific
       * MeshConfigResponse in a following MeshConfigRequest. Additional
       * messages may have been sent by client to the management server for
       * the previous version on the stream prior to this
       * MeshConfigResponse, that were unprocessed at response send
       * time. The nonce allows the management server to ignore any
       * further MeshConfigRequests for the previous version until a
       * MeshConfigRequest bearing the nonce.
       * 
* * string nonce = 4; */ public Builder setNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nonce_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:istio.mcp.v1alpha1.MeshConfigResponse) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.MeshConfigResponse) private static final 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 { return new MeshConfigResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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; */ boolean hasSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ 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; */ 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; */ 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; */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, 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; */ 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; */ 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; */ 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; */ 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IncrementalMeshConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { istio.mcp.v1alpha1.Mcp.SinkNode.Builder subBuilder = null; if (sinkNode_ != null) { subBuilder = sinkNode_.toBuilder(); } sinkNode_ = input.readMessage(istio.mcp.v1alpha1.Mcp.SinkNode.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sinkNode_); sinkNode_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); typeUrl_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { initialResourceVersions_ = com.google.protobuf.MapField.newMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry initialResourceVersions__ = input.readMessage( InitialResourceVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); initialResourceVersions_.getMutableMap().put( initialResourceVersions__.getKey(), initialResourceVersions__.getValue()); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); responseNonce_ = s; break; } case 42: { com.google.rpc.Status.Builder subBuilder = null; if (errorDetail_ != null) { subBuilder = errorDetail_.toBuilder(); } errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorDetail_); errorDetail_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return 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; */ public boolean hasSinkNode() { return sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ 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; */ public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return getSinkNode(); } public static final int TYPE_URL_FIELD_NUMBER = 2; 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; */ 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; */ 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, ""); } 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; */ public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @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; */ 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; */ public java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } 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; */ public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } 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; 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; */ 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; */ 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; */ 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; */ 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; */ public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return getErrorDetail(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sinkNode_ != null) { output.writeMessage(1, getSinkNode()); } if (!getTypeUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeUrl_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInitialResourceVersions(), InitialResourceVersionsDefaultEntryHolder.defaultEntry, 3); if (!getResponseNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sinkNode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSinkNode()); } if (!getTypeUrlBytes().isEmpty()) { 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 (!getResponseNonceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_); } if (errorDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getErrorDetail()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (sinkNodeBuilder_ == null) { sinkNode_ = null; } else { sinkNode_ = null; sinkNodeBuilder_ = null; } typeUrl_ = ""; internalGetMutableInitialResourceVersions().clear(); responseNonce_ = ""; if (errorDetailBuilder_ == null) { errorDetail_ = null; } else { errorDetail_ = null; 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); int from_bitField0_ = bitField0_; if (sinkNodeBuilder_ == null) { result.sinkNode_ = sinkNode_; } else { result.sinkNode_ = sinkNodeBuilder_.build(); } result.typeUrl_ = typeUrl_; result.initialResourceVersions_ = internalGetInitialResourceVersions(); result.initialResourceVersions_.makeImmutable(); result.responseNonce_ = responseNonce_; if (errorDetailBuilder_ == null) { result.errorDetail_ = errorDetail_; } else { result.errorDetail_ = errorDetailBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } internalGetMutableInitialResourceVersions().mergeFrom( other.internalGetInitialResourceVersions()); if (!other.getResponseNonce().isEmpty()) { responseNonce_ = other.responseNonce_; onChanged(); } if (other.hasErrorDetail()) { mergeErrorDetail(other.getErrorDetail()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; */ public boolean hasSinkNode() { return sinkNodeBuilder_ != null || sinkNode_ != null; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ 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; onChanged(); } else { sinkNodeBuilder_.setMessage(value); } 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(); onChanged(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } 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 (sinkNode_ != null) { sinkNode_ = istio.mcp.v1alpha1.Mcp.SinkNode.newBuilder(sinkNode_).mergeFrom(value).buildPartial(); } else { sinkNode_ = value; } onChanged(); } else { sinkNodeBuilder_.mergeFrom(value); } return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder clearSinkNode() { if (sinkNodeBuilder_ == null) { sinkNode_ = null; onChanged(); } else { sinkNode_ = null; sinkNodeBuilder_ = null; } return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public istio.mcp.v1alpha1.Mcp.SinkNode.Builder getSinkNodeBuilder() { 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; */ 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; */ 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; */ public Builder setTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeUrl_ = value; onChanged(); return this; } /** *
       * Type of the resource that is being requested, e.g.
       * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
       * 
* * string type_url = 2; */ public Builder clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); onChanged(); return this; } /** *
       * Type of the resource that is being requested, e.g.
       * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
       * 
* * string type_url = 2; */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeUrl_ = value; 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() { onChanged();; if (initialResourceVersions_ == null) { initialResourceVersions_ = com.google.protobuf.MapField.newMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } if (!initialResourceVersions_.isMutable()) { initialResourceVersions_ = initialResourceVersions_.copy(); } 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; */ public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @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; */ 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; */ public java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } 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; */ public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetInitialResourceVersions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearInitialResourceVersions() { 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 java.lang.NullPointerException(); } internalGetMutableInitialResourceVersions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInitialResourceVersions() { 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 java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableInitialResourceVersions().getMutableMap() .put(key, value); 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); 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; */ 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; */ 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; */ public Builder setResponseNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } responseNonce_ = value; 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; */ public Builder clearResponseNonce() { responseNonce_ = getDefaultInstance().getResponseNonce(); 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; */ public Builder setResponseNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); responseNonce_ = value; onChanged(); return this; } private com.google.rpc.Status errorDetail_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorDetailBuilder_; /** *
       * This is populated when the previous 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 boolean hasErrorDetail() { return errorDetailBuilder_ != null || 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; */ 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; onChanged(); } else { errorDetailBuilder_.setMessage(value); } 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(); onChanged(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } 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 (errorDetail_ != null) { errorDetail_ = com.google.rpc.Status.newBuilder(errorDetail_).mergeFrom(value).buildPartial(); } else { errorDetail_ = value; } onChanged(); } else { errorDetailBuilder_.mergeFrom(value); } return this; } /** *
       * This is populated when the previous 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() { if (errorDetailBuilder_ == null) { errorDetail_ = null; onChanged(); } else { errorDetail_ = null; errorDetailBuilder_ = null; } 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() { 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 { return new IncrementalMeshConfigRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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; */ java.lang.String getSystemVersionInfo(); /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; */ 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; */ 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; */ 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; */ 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; */ 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; */ java.lang.String getNonce(); /** *
     * The nonce provides a way for IncrementalMeshConfigRequests to
     * uniquely reference an IncrementalMeshConfigResponse. The nonce is
     * required.
     * 
* * string nonce = 4; */ 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.EMPTY; nonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IncrementalMeshConfigResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IncrementalMeshConfigResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); systemVersionInfo_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { removedResources_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } removedResources_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); nonce_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { removedResources_ = removedResources_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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; private volatile java.lang.Object systemVersionInfo_; /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; */ 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; */ 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; 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]; */ 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]; */ 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]; */ 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]; */ 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]; */ public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int REMOVED_RESOURCES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList 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; */ 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; */ 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; */ 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; */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(index); } public static final int NONCE_FIELD_NUMBER = 4; 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; */ 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; */ 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 (!getSystemVersionInfoBytes().isEmpty()) { 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 (!getNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSystemVersionInfoBytes().isEmpty()) { 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 (!getNonceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); systemVersionInfo_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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); int from_bitField0_ = bitField0_; result.systemVersionInfo_ = systemVersionInfo_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { removedResources_ = removedResources_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.removedResources_ = removedResources_; result.nonce_ = nonce_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.removedResources_.isEmpty()) { if (removedResources_.isEmpty()) { removedResources_ = other.removedResources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRemovedResourcesIsMutable(); removedResources_.addAll(other.removedResources_); } onChanged(); } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object systemVersionInfo_ = ""; /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; */ 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; */ 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; */ public Builder setSystemVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } systemVersionInfo_ = value; onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; */ public Builder clearSystemVersionInfo() { systemVersionInfo_ = getDefaultInstance().getSystemVersionInfo(); onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; */ public Builder setSystemVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); systemVersionInfo_ = value; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.protobuf.LazyStringList removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRemovedResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { removedResources_ = new com.google.protobuf.LazyStringArrayList(removedResources_); bitField0_ |= 0x00000002; } } /** *
       * 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; */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { return removedResources_.getUnmodifiableView(); } /** *
       * 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; */ 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; */ 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; */ 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; */ public Builder setRemovedResources( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.set(index, value); 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; */ public Builder addRemovedResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.add(value); 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; */ public Builder addAllRemovedResources( java.lang.Iterable values) { ensureRemovedResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, removedResources_); 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; */ public Builder clearRemovedResources() { removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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; */ public Builder addRemovedResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemovedResourcesIsMutable(); removedResources_.add(value); 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; */ 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; */ 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; */ public Builder setNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** *
       * The nonce provides a way for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * string nonce = 4; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } /** *
       * The nonce provides a way for IncrementalMeshConfigRequests to
       * uniquely reference an IncrementalMeshConfigResponse. The nonce is
       * required.
       * 
* * string nonce = 4; */ public Builder setNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nonce_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:istio.mcp.v1alpha1.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 { return new IncrementalMeshConfigResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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; */ boolean hasSinkNode(); /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ 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; */ java.lang.String getCollection(); /** *
     * Type of resource collection that is being requested, e.g.
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; */ 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; */ java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * When the RequestResources is the first in a stream, the initial_resource_versions must
     * be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
     * resources names of the MCP resources known to the MCP client. The values in the map
     * are the associated resource level version info.
     * 
* * map<string, string> initial_resource_versions = 3; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestResources( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { istio.mcp.v1alpha1.Mcp.SinkNode.Builder subBuilder = null; if (sinkNode_ != null) { subBuilder = sinkNode_.toBuilder(); } sinkNode_ = input.readMessage(istio.mcp.v1alpha1.Mcp.SinkNode.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sinkNode_); sinkNode_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); collection_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { initialResourceVersions_ = com.google.protobuf.MapField.newMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry initialResourceVersions__ = input.readMessage( InitialResourceVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); initialResourceVersions_.getMutableMap().put( initialResourceVersions__.getKey(), initialResourceVersions__.getValue()); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); responseNonce_ = s; break; } case 42: { com.google.rpc.Status.Builder subBuilder = null; if (errorDetail_ != null) { subBuilder = errorDetail_.toBuilder(); } errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorDetail_); errorDetail_ = subBuilder.buildPartial(); } break; } case 48: { incremental_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return 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; */ public boolean hasSinkNode() { return sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ 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; */ public istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return getSinkNode(); } public static final int COLLECTION_FIELD_NUMBER = 2; 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; */ 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; */ 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, ""); } 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; */ public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @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; */ 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; */ public java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } 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; */ public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } 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; 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; */ 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; */ 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; */ 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; */ 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; */ public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return getErrorDetail(); } public static final int INCREMENTAL_FIELD_NUMBER = 6; 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; */ 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 (!getCollectionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInitialResourceVersions(), InitialResourceVersionsDefaultEntryHolder.defaultEntry, 3); if (!getResponseNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } if (incremental_ != false) { output.writeBool(6, incremental_); } unknownFields.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 (!getCollectionBytes().isEmpty()) { 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 (!getResponseNonceBytes().isEmpty()) { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (sinkNodeBuilder_ == null) { sinkNode_ = null; } else { sinkNode_ = null; sinkNodeBuilder_ = null; } collection_ = ""; internalGetMutableInitialResourceVersions().clear(); responseNonce_ = ""; if (errorDetailBuilder_ == null) { errorDetail_ = null; } else { errorDetail_ = null; 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); int from_bitField0_ = bitField0_; if (sinkNodeBuilder_ == null) { result.sinkNode_ = sinkNode_; } else { result.sinkNode_ = sinkNodeBuilder_.build(); } result.collection_ = collection_; result.initialResourceVersions_ = internalGetInitialResourceVersions(); result.initialResourceVersions_.makeImmutable(); result.responseNonce_ = responseNonce_; if (errorDetailBuilder_ == null) { result.errorDetail_ = errorDetail_; } else { result.errorDetail_ = errorDetailBuilder_.build(); } result.incremental_ = incremental_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } internalGetMutableInitialResourceVersions().mergeFrom( other.internalGetInitialResourceVersions()); if (!other.getResponseNonce().isEmpty()) { responseNonce_ = other.responseNonce_; onChanged(); } if (other.hasErrorDetail()) { mergeErrorDetail(other.getErrorDetail()); } if (other.getIncremental() != false) { setIncremental(other.getIncremental()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.RequestResources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.RequestResources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; */ public boolean hasSinkNode() { return sinkNodeBuilder_ != null || sinkNode_ != null; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ 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; onChanged(); } else { sinkNodeBuilder_.setMessage(value); } 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(); onChanged(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } 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 (sinkNode_ != null) { sinkNode_ = istio.mcp.v1alpha1.Mcp.SinkNode.newBuilder(sinkNode_).mergeFrom(value).buildPartial(); } else { sinkNode_ = value; } onChanged(); } else { sinkNodeBuilder_.mergeFrom(value); } return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public Builder clearSinkNode() { if (sinkNodeBuilder_ == null) { sinkNode_ = null; onChanged(); } else { sinkNode_ = null; sinkNodeBuilder_ = null; } return this; } /** *
       * The sink node making the request.
       * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 1; */ public istio.mcp.v1alpha1.Mcp.SinkNode.Builder getSinkNodeBuilder() { 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; */ 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; */ 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; */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; 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() { onChanged();; if (initialResourceVersions_ == null) { initialResourceVersions_ = com.google.protobuf.MapField.newMapField( InitialResourceVersionsDefaultEntryHolder.defaultEntry); } if (!initialResourceVersions_.isMutable()) { initialResourceVersions_ = initialResourceVersions_.copy(); } 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; */ public boolean containsInitialResourceVersions( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetInitialResourceVersions().getMap().containsKey(key); } /** * Use {@link #getInitialResourceVersionsMap()} instead. */ @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; */ 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; */ public java.lang.String getInitialResourceVersionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } 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; */ public java.lang.String getInitialResourceVersionsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetInitialResourceVersions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearInitialResourceVersions() { 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 java.lang.NullPointerException(); } internalGetMutableInitialResourceVersions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInitialResourceVersions() { 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 java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableInitialResourceVersions().getMutableMap() .put(key, value); 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); 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; */ 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; */ 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; */ public Builder setResponseNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } responseNonce_ = value; 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; */ public Builder clearResponseNonce() { responseNonce_ = getDefaultInstance().getResponseNonce(); 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; */ public Builder setResponseNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); responseNonce_ = value; onChanged(); return this; } private com.google.rpc.Status errorDetail_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorDetailBuilder_; /** *
       * This is populated when the previously received resources could not be applied
       * The *message* field in *error_details* provides the source internal error
       * related to the failure.
       * 
* * .google.rpc.Status error_detail = 5; */ public boolean hasErrorDetail() { return errorDetailBuilder_ != null || 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; */ 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; onChanged(); } else { errorDetailBuilder_.setMessage(value); } 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(); onChanged(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } 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 (errorDetail_ != null) { errorDetail_ = com.google.rpc.Status.newBuilder(errorDetail_).mergeFrom(value).buildPartial(); } else { errorDetail_ = value; } onChanged(); } else { errorDetailBuilder_.mergeFrom(value); } return this; } /** *
       * This is populated when the 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() { if (errorDetailBuilder_ == null) { errorDetail_ = null; onChanged(); } else { errorDetail_ = null; errorDetailBuilder_ = null; } 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() { 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; */ 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; */ public Builder setIncremental(boolean value) { incremental_ = value; 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; */ public Builder clearIncremental() { 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 { return new RequestResources(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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; */ java.lang.String getSystemVersionInfo(); /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; */ 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; */ java.lang.String getCollection(); /** *
     * Type of resource collection that is being requested, e.g.
     * istio/networking/v1alpha3/VirtualService
     * k8s/<apiVersion>/<kind>
     * 
* * string collection = 2; */ 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; */ 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; */ 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; */ 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; */ com.google.protobuf.ByteString getRemovedResourcesBytes(int index); /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; */ java.lang.String getNonce(); /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; */ 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; */ 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.EMPTY; nonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Resources(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Resources( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); systemVersionInfo_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); collection_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { removedResources_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } removedResources_.add(s); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); nonce_ = s; break; } case 48: { incremental_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { removedResources_ = removedResources_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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; private volatile java.lang.Object systemVersionInfo_; /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; */ 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; */ 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; 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; */ 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; */ 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; 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]; */ 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]; */ 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]; */ 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]; */ 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]; */ public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int REMOVED_RESOURCES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList 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; */ 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; */ 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; */ 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; */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(index); } public static final int NONCE_FIELD_NUMBER = 5; private volatile java.lang.Object nonce_; /** *
     * Required. The nonce provides a way for RequestChange to uniquely
     * reference a RequestResources.
     * 
* * string nonce = 5; */ 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; */ 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_; /** *
     * This resource response is an incremental update. The source should only send
     * incremental updates if the sink requested them.
     * 
* * bool incremental = 6; */ 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 (!getSystemVersionInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemVersionInfo_); } if (!getCollectionBytes().isEmpty()) { 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 (!getNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nonce_); } if (incremental_ != false) { output.writeBool(6, incremental_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSystemVersionInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemVersionInfo_); } if (!getCollectionBytes().isEmpty()) { 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 (!getNonceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nonce_); } if (incremental_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, incremental_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); systemVersionInfo_ = ""; collection_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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); int from_bitField0_ = bitField0_; result.systemVersionInfo_ = systemVersionInfo_; result.collection_ = collection_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { removedResources_ = removedResources_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.removedResources_ = removedResources_; result.nonce_ = nonce_; result.incremental_ = incremental_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_; onChanged(); } if (!other.getCollection().isEmpty()) { collection_ = other.collection_; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.removedResources_.isEmpty()) { if (removedResources_.isEmpty()) { removedResources_ = other.removedResources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRemovedResourcesIsMutable(); removedResources_.addAll(other.removedResources_); } onChanged(); } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; onChanged(); } if (other.getIncremental() != false) { setIncremental(other.getIncremental()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { istio.mcp.v1alpha1.Mcp.Resources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (istio.mcp.v1alpha1.Mcp.Resources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object systemVersionInfo_ = ""; /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; */ 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; */ 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; */ public Builder setSystemVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } systemVersionInfo_ = value; onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; */ public Builder clearSystemVersionInfo() { systemVersionInfo_ = getDefaultInstance().getSystemVersionInfo(); onChanged(); return this; } /** *
       * The version of the response data (used for debugging).
       * 
* * string system_version_info = 1; */ public Builder setSystemVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); systemVersionInfo_ = value; 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; */ 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; */ 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; */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); onChanged(); return this; } /** *
       * Type of resource collection that is being requested, e.g.
       * istio/networking/v1alpha3/VirtualService
       * k8s/<apiVersion>/<kind>
       * 
* * string collection = 2; */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.protobuf.LazyStringList removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRemovedResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { removedResources_ = new com.google.protobuf.LazyStringArrayList(removedResources_); bitField0_ |= 0x00000002; } } /** *
       * 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; */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { return removedResources_.getUnmodifiableView(); } /** *
       * 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; */ 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; */ 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; */ 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; */ public Builder setRemovedResources( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.set(index, value); 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; */ public Builder addRemovedResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.add(value); 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; */ public Builder addAllRemovedResources( java.lang.Iterable values) { ensureRemovedResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, removedResources_); 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; */ public Builder clearRemovedResources() { removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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; */ public Builder addRemovedResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemovedResourcesIsMutable(); removedResources_.add(value); onChanged(); return this; } private java.lang.Object nonce_ = ""; /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; */ 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; */ 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; */ public Builder setNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } /** *
       * Required. The nonce provides a way for RequestChange to uniquely
       * reference a RequestResources.
       * 
* * string nonce = 5; */ public Builder setNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nonce_ = value; 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; */ 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; */ public Builder setIncremental(boolean value) { incremental_ = value; 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; */ public Builder clearIncremental() { 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 { return new Resources(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public 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