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

com.authzed.api.v1.WatchServiceOuterClass Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: authzed/api/v1/watch_service.proto

package com.authzed.api.v1;

public final class WatchServiceOuterClass {
  private WatchServiceOuterClass() {}
  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 WatchRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:authzed.api.v1.WatchRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated string optional_object_types = 1 [(.validate.rules) = { ... }
     * @return A list containing the optionalObjectTypes.
     */
    java.util.List
        getOptionalObjectTypesList();
    /**
     * repeated string optional_object_types = 1 [(.validate.rules) = { ... }
     * @return The count of optionalObjectTypes.
     */
    int getOptionalObjectTypesCount();
    /**
     * repeated string optional_object_types = 1 [(.validate.rules) = { ... }
     * @param index The index of the element to return.
     * @return The optionalObjectTypes at the given index.
     */
    java.lang.String getOptionalObjectTypes(int index);
    /**
     * repeated string optional_object_types = 1 [(.validate.rules) = { ... }
     * @param index The index of the value to return.
     * @return The bytes of the optionalObjectTypes at the given index.
     */
    com.google.protobuf.ByteString
        getOptionalObjectTypesBytes(int index);

    /**
     * .authzed.api.v1.ZedToken optional_start_cursor = 2;
     * @return Whether the optionalStartCursor field is set.
     */
    boolean hasOptionalStartCursor();
    /**
     * .authzed.api.v1.ZedToken optional_start_cursor = 2;
     * @return The optionalStartCursor.
     */
    com.authzed.api.v1.Core.ZedToken getOptionalStartCursor();
    /**
     * .authzed.api.v1.ZedToken optional_start_cursor = 2;
     */
    com.authzed.api.v1.Core.ZedTokenOrBuilder getOptionalStartCursorOrBuilder();
  }
  /**
   * 
   * WatchRequest specifies the object definitions for which we want to start
   * watching mutations, and an optional start snapshot for when to start
   * watching.
   * 
* * Protobuf type {@code authzed.api.v1.WatchRequest} */ public static final class WatchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:authzed.api.v1.WatchRequest) WatchRequestOrBuilder { private static final long serialVersionUID = 0L; // Use WatchRequest.newBuilder() to construct. private WatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchRequest() { optionalObjectTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WatchRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.class, com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.Builder.class); } public static final int OPTIONAL_OBJECT_TYPES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList optionalObjectTypes_; /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @return A list containing the optionalObjectTypes. */ public com.google.protobuf.ProtocolStringList getOptionalObjectTypesList() { return optionalObjectTypes_; } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @return The count of optionalObjectTypes. */ public int getOptionalObjectTypesCount() { return optionalObjectTypes_.size(); } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param index The index of the element to return. * @return The optionalObjectTypes at the given index. */ public java.lang.String getOptionalObjectTypes(int index) { return optionalObjectTypes_.get(index); } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param index The index of the value to return. * @return The bytes of the optionalObjectTypes at the given index. */ public com.google.protobuf.ByteString getOptionalObjectTypesBytes(int index) { return optionalObjectTypes_.getByteString(index); } public static final int OPTIONAL_START_CURSOR_FIELD_NUMBER = 2; private com.authzed.api.v1.Core.ZedToken optionalStartCursor_; /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; * @return Whether the optionalStartCursor field is set. */ @java.lang.Override public boolean hasOptionalStartCursor() { return optionalStartCursor_ != null; } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; * @return The optionalStartCursor. */ @java.lang.Override public com.authzed.api.v1.Core.ZedToken getOptionalStartCursor() { return optionalStartCursor_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : optionalStartCursor_; } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ @java.lang.Override public com.authzed.api.v1.Core.ZedTokenOrBuilder getOptionalStartCursorOrBuilder() { return optionalStartCursor_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : optionalStartCursor_; } 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 { for (int i = 0; i < optionalObjectTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, optionalObjectTypes_.getRaw(i)); } if (optionalStartCursor_ != null) { output.writeMessage(2, getOptionalStartCursor()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < optionalObjectTypes_.size(); i++) { dataSize += computeStringSizeNoTag(optionalObjectTypes_.getRaw(i)); } size += dataSize; size += 1 * getOptionalObjectTypesList().size(); } if (optionalStartCursor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOptionalStartCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.authzed.api.v1.WatchServiceOuterClass.WatchRequest)) { return super.equals(obj); } com.authzed.api.v1.WatchServiceOuterClass.WatchRequest other = (com.authzed.api.v1.WatchServiceOuterClass.WatchRequest) obj; if (!getOptionalObjectTypesList() .equals(other.getOptionalObjectTypesList())) return false; if (hasOptionalStartCursor() != other.hasOptionalStartCursor()) return false; if (hasOptionalStartCursor()) { if (!getOptionalStartCursor() .equals(other.getOptionalStartCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOptionalObjectTypesCount() > 0) { hash = (37 * hash) + OPTIONAL_OBJECT_TYPES_FIELD_NUMBER; hash = (53 * hash) + getOptionalObjectTypesList().hashCode(); } if (hasOptionalStartCursor()) { hash = (37 * hash) + OPTIONAL_START_CURSOR_FIELD_NUMBER; hash = (53 * hash) + getOptionalStartCursor().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.authzed.api.v1.WatchServiceOuterClass.WatchRequest 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; } /** *
     * WatchRequest specifies the object definitions for which we want to start
     * watching mutations, and an optional start snapshot for when to start
     * watching.
     * 
* * Protobuf type {@code authzed.api.v1.WatchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:authzed.api.v1.WatchRequest) com.authzed.api.v1.WatchServiceOuterClass.WatchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.class, com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.Builder.class); } // Construct using com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; optionalObjectTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); optionalStartCursor_ = null; if (optionalStartCursorBuilder_ != null) { optionalStartCursorBuilder_.dispose(); optionalStartCursorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchRequest_descriptor; } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchRequest getDefaultInstanceForType() { return com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.getDefaultInstance(); } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchRequest build() { com.authzed.api.v1.WatchServiceOuterClass.WatchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchRequest buildPartial() { com.authzed.api.v1.WatchServiceOuterClass.WatchRequest result = new com.authzed.api.v1.WatchServiceOuterClass.WatchRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.authzed.api.v1.WatchServiceOuterClass.WatchRequest result) { if (((bitField0_ & 0x00000001) != 0)) { optionalObjectTypes_ = optionalObjectTypes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.optionalObjectTypes_ = optionalObjectTypes_; } private void buildPartial0(com.authzed.api.v1.WatchServiceOuterClass.WatchRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.optionalStartCursor_ = optionalStartCursorBuilder_ == null ? optionalStartCursor_ : optionalStartCursorBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.authzed.api.v1.WatchServiceOuterClass.WatchRequest) { return mergeFrom((com.authzed.api.v1.WatchServiceOuterClass.WatchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.authzed.api.v1.WatchServiceOuterClass.WatchRequest other) { if (other == com.authzed.api.v1.WatchServiceOuterClass.WatchRequest.getDefaultInstance()) return this; if (!other.optionalObjectTypes_.isEmpty()) { if (optionalObjectTypes_.isEmpty()) { optionalObjectTypes_ = other.optionalObjectTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOptionalObjectTypesIsMutable(); optionalObjectTypes_.addAll(other.optionalObjectTypes_); } onChanged(); } if (other.hasOptionalStartCursor()) { mergeOptionalStartCursor(other.getOptionalStartCursor()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureOptionalObjectTypesIsMutable(); optionalObjectTypes_.add(s); break; } // case 10 case 18: { input.readMessage( getOptionalStartCursorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringList optionalObjectTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureOptionalObjectTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { optionalObjectTypes_ = new com.google.protobuf.LazyStringArrayList(optionalObjectTypes_); bitField0_ |= 0x00000001; } } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @return A list containing the optionalObjectTypes. */ public com.google.protobuf.ProtocolStringList getOptionalObjectTypesList() { return optionalObjectTypes_.getUnmodifiableView(); } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @return The count of optionalObjectTypes. */ public int getOptionalObjectTypesCount() { return optionalObjectTypes_.size(); } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param index The index of the element to return. * @return The optionalObjectTypes at the given index. */ public java.lang.String getOptionalObjectTypes(int index) { return optionalObjectTypes_.get(index); } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param index The index of the value to return. * @return The bytes of the optionalObjectTypes at the given index. */ public com.google.protobuf.ByteString getOptionalObjectTypesBytes(int index) { return optionalObjectTypes_.getByteString(index); } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param index The index to set the value at. * @param value The optionalObjectTypes to set. * @return This builder for chaining. */ public Builder setOptionalObjectTypes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOptionalObjectTypesIsMutable(); optionalObjectTypes_.set(index, value); onChanged(); return this; } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param value The optionalObjectTypes to add. * @return This builder for chaining. */ public Builder addOptionalObjectTypes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOptionalObjectTypesIsMutable(); optionalObjectTypes_.add(value); onChanged(); return this; } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param values The optionalObjectTypes to add. * @return This builder for chaining. */ public Builder addAllOptionalObjectTypes( java.lang.Iterable values) { ensureOptionalObjectTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, optionalObjectTypes_); onChanged(); return this; } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearOptionalObjectTypes() { optionalObjectTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string optional_object_types = 1 [(.validate.rules) = { ... } * @param value The bytes of the optionalObjectTypes to add. * @return This builder for chaining. */ public Builder addOptionalObjectTypesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureOptionalObjectTypesIsMutable(); optionalObjectTypes_.add(value); onChanged(); return this; } private com.authzed.api.v1.Core.ZedToken optionalStartCursor_; private com.google.protobuf.SingleFieldBuilderV3< com.authzed.api.v1.Core.ZedToken, com.authzed.api.v1.Core.ZedToken.Builder, com.authzed.api.v1.Core.ZedTokenOrBuilder> optionalStartCursorBuilder_; /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; * @return Whether the optionalStartCursor field is set. */ public boolean hasOptionalStartCursor() { return ((bitField0_ & 0x00000002) != 0); } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; * @return The optionalStartCursor. */ public com.authzed.api.v1.Core.ZedToken getOptionalStartCursor() { if (optionalStartCursorBuilder_ == null) { return optionalStartCursor_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : optionalStartCursor_; } else { return optionalStartCursorBuilder_.getMessage(); } } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ public Builder setOptionalStartCursor(com.authzed.api.v1.Core.ZedToken value) { if (optionalStartCursorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalStartCursor_ = value; } else { optionalStartCursorBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ public Builder setOptionalStartCursor( com.authzed.api.v1.Core.ZedToken.Builder builderForValue) { if (optionalStartCursorBuilder_ == null) { optionalStartCursor_ = builderForValue.build(); } else { optionalStartCursorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ public Builder mergeOptionalStartCursor(com.authzed.api.v1.Core.ZedToken value) { if (optionalStartCursorBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && optionalStartCursor_ != null && optionalStartCursor_ != com.authzed.api.v1.Core.ZedToken.getDefaultInstance()) { getOptionalStartCursorBuilder().mergeFrom(value); } else { optionalStartCursor_ = value; } } else { optionalStartCursorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ public Builder clearOptionalStartCursor() { bitField0_ = (bitField0_ & ~0x00000002); optionalStartCursor_ = null; if (optionalStartCursorBuilder_ != null) { optionalStartCursorBuilder_.dispose(); optionalStartCursorBuilder_ = null; } onChanged(); return this; } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ public com.authzed.api.v1.Core.ZedToken.Builder getOptionalStartCursorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOptionalStartCursorFieldBuilder().getBuilder(); } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ public com.authzed.api.v1.Core.ZedTokenOrBuilder getOptionalStartCursorOrBuilder() { if (optionalStartCursorBuilder_ != null) { return optionalStartCursorBuilder_.getMessageOrBuilder(); } else { return optionalStartCursor_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : optionalStartCursor_; } } /** * .authzed.api.v1.ZedToken optional_start_cursor = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.authzed.api.v1.Core.ZedToken, com.authzed.api.v1.Core.ZedToken.Builder, com.authzed.api.v1.Core.ZedTokenOrBuilder> getOptionalStartCursorFieldBuilder() { if (optionalStartCursorBuilder_ == null) { optionalStartCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.authzed.api.v1.Core.ZedToken, com.authzed.api.v1.Core.ZedToken.Builder, com.authzed.api.v1.Core.ZedTokenOrBuilder>( getOptionalStartCursor(), getParentForChildren(), isClean()); optionalStartCursor_ = null; } return optionalStartCursorBuilder_; } @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:authzed.api.v1.WatchRequest) } // @@protoc_insertion_point(class_scope:authzed.api.v1.WatchRequest) private static final com.authzed.api.v1.WatchServiceOuterClass.WatchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.authzed.api.v1.WatchServiceOuterClass.WatchRequest(); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WatchResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:authzed.api.v1.WatchResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ java.util.List getUpdatesList(); /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ com.authzed.api.v1.Core.RelationshipUpdate getUpdates(int index); /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ int getUpdatesCount(); /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ java.util.List getUpdatesOrBuilderList(); /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ com.authzed.api.v1.Core.RelationshipUpdateOrBuilder getUpdatesOrBuilder( int index); /** * .authzed.api.v1.ZedToken changes_through = 2; * @return Whether the changesThrough field is set. */ boolean hasChangesThrough(); /** * .authzed.api.v1.ZedToken changes_through = 2; * @return The changesThrough. */ com.authzed.api.v1.Core.ZedToken getChangesThrough(); /** * .authzed.api.v1.ZedToken changes_through = 2; */ com.authzed.api.v1.Core.ZedTokenOrBuilder getChangesThroughOrBuilder(); } /** *
   * WatchResponse contains all tuple modification events in ascending
   * timestamp order, from the requested start snapshot to a snapshot
   * encoded in the watch response. The client can use the snapshot to resume
   * watching where the previous watch response left off.
   * 
* * Protobuf type {@code authzed.api.v1.WatchResponse} */ public static final class WatchResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:authzed.api.v1.WatchResponse) WatchResponseOrBuilder { private static final long serialVersionUID = 0L; // Use WatchResponse.newBuilder() to construct. private WatchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchResponse() { updates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WatchResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.class, com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.Builder.class); } public static final int UPDATES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List updates_; /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ @java.lang.Override public java.util.List getUpdatesList() { return updates_; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ @java.lang.Override public java.util.List getUpdatesOrBuilderList() { return updates_; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ @java.lang.Override public int getUpdatesCount() { return updates_.size(); } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ @java.lang.Override public com.authzed.api.v1.Core.RelationshipUpdate getUpdates(int index) { return updates_.get(index); } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ @java.lang.Override public com.authzed.api.v1.Core.RelationshipUpdateOrBuilder getUpdatesOrBuilder( int index) { return updates_.get(index); } public static final int CHANGES_THROUGH_FIELD_NUMBER = 2; private com.authzed.api.v1.Core.ZedToken changesThrough_; /** * .authzed.api.v1.ZedToken changes_through = 2; * @return Whether the changesThrough field is set. */ @java.lang.Override public boolean hasChangesThrough() { return changesThrough_ != null; } /** * .authzed.api.v1.ZedToken changes_through = 2; * @return The changesThrough. */ @java.lang.Override public com.authzed.api.v1.Core.ZedToken getChangesThrough() { return changesThrough_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : changesThrough_; } /** * .authzed.api.v1.ZedToken changes_through = 2; */ @java.lang.Override public com.authzed.api.v1.Core.ZedTokenOrBuilder getChangesThroughOrBuilder() { return changesThrough_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : changesThrough_; } 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 { for (int i = 0; i < updates_.size(); i++) { output.writeMessage(1, updates_.get(i)); } if (changesThrough_ != null) { output.writeMessage(2, getChangesThrough()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < updates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, updates_.get(i)); } if (changesThrough_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChangesThrough()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.authzed.api.v1.WatchServiceOuterClass.WatchResponse)) { return super.equals(obj); } com.authzed.api.v1.WatchServiceOuterClass.WatchResponse other = (com.authzed.api.v1.WatchServiceOuterClass.WatchResponse) obj; if (!getUpdatesList() .equals(other.getUpdatesList())) return false; if (hasChangesThrough() != other.hasChangesThrough()) return false; if (hasChangesThrough()) { if (!getChangesThrough() .equals(other.getChangesThrough())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUpdatesCount() > 0) { hash = (37 * hash) + UPDATES_FIELD_NUMBER; hash = (53 * hash) + getUpdatesList().hashCode(); } if (hasChangesThrough()) { hash = (37 * hash) + CHANGES_THROUGH_FIELD_NUMBER; hash = (53 * hash) + getChangesThrough().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.authzed.api.v1.WatchServiceOuterClass.WatchResponse 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; } /** *
     * WatchResponse contains all tuple modification events in ascending
     * timestamp order, from the requested start snapshot to a snapshot
     * encoded in the watch response. The client can use the snapshot to resume
     * watching where the previous watch response left off.
     * 
* * Protobuf type {@code authzed.api.v1.WatchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:authzed.api.v1.WatchResponse) com.authzed.api.v1.WatchServiceOuterClass.WatchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.class, com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.Builder.class); } // Construct using com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (updatesBuilder_ == null) { updates_ = java.util.Collections.emptyList(); } else { updates_ = null; updatesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); changesThrough_ = null; if (changesThroughBuilder_ != null) { changesThroughBuilder_.dispose(); changesThroughBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.authzed.api.v1.WatchServiceOuterClass.internal_static_authzed_api_v1_WatchResponse_descriptor; } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchResponse getDefaultInstanceForType() { return com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.getDefaultInstance(); } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchResponse build() { com.authzed.api.v1.WatchServiceOuterClass.WatchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchResponse buildPartial() { com.authzed.api.v1.WatchServiceOuterClass.WatchResponse result = new com.authzed.api.v1.WatchServiceOuterClass.WatchResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.authzed.api.v1.WatchServiceOuterClass.WatchResponse result) { if (updatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { updates_ = java.util.Collections.unmodifiableList(updates_); bitField0_ = (bitField0_ & ~0x00000001); } result.updates_ = updates_; } else { result.updates_ = updatesBuilder_.build(); } } private void buildPartial0(com.authzed.api.v1.WatchServiceOuterClass.WatchResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.changesThrough_ = changesThroughBuilder_ == null ? changesThrough_ : changesThroughBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.authzed.api.v1.WatchServiceOuterClass.WatchResponse) { return mergeFrom((com.authzed.api.v1.WatchServiceOuterClass.WatchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.authzed.api.v1.WatchServiceOuterClass.WatchResponse other) { if (other == com.authzed.api.v1.WatchServiceOuterClass.WatchResponse.getDefaultInstance()) return this; if (updatesBuilder_ == null) { if (!other.updates_.isEmpty()) { if (updates_.isEmpty()) { updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUpdatesIsMutable(); updates_.addAll(other.updates_); } onChanged(); } } else { if (!other.updates_.isEmpty()) { if (updatesBuilder_.isEmpty()) { updatesBuilder_.dispose(); updatesBuilder_ = null; updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000001); updatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUpdatesFieldBuilder() : null; } else { updatesBuilder_.addAllMessages(other.updates_); } } } if (other.hasChangesThrough()) { mergeChangesThrough(other.getChangesThrough()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.authzed.api.v1.Core.RelationshipUpdate m = input.readMessage( com.authzed.api.v1.Core.RelationshipUpdate.parser(), extensionRegistry); if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(m); } else { updatesBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getChangesThroughFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List updates_ = java.util.Collections.emptyList(); private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.authzed.api.v1.Core.RelationshipUpdate, com.authzed.api.v1.Core.RelationshipUpdate.Builder, com.authzed.api.v1.Core.RelationshipUpdateOrBuilder> updatesBuilder_; /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { return java.util.Collections.unmodifiableList(updates_); } else { return updatesBuilder_.getMessageList(); } } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public int getUpdatesCount() { if (updatesBuilder_ == null) { return updates_.size(); } else { return updatesBuilder_.getCount(); } } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public com.authzed.api.v1.Core.RelationshipUpdate getUpdates(int index) { if (updatesBuilder_ == null) { return updates_.get(index); } else { return updatesBuilder_.getMessage(index); } } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder setUpdates( int index, com.authzed.api.v1.Core.RelationshipUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.set(index, value); onChanged(); } else { updatesBuilder_.setMessage(index, value); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder setUpdates( int index, com.authzed.api.v1.Core.RelationshipUpdate.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.set(index, builderForValue.build()); onChanged(); } else { updatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder addUpdates(com.authzed.api.v1.Core.RelationshipUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.add(value); onChanged(); } else { updatesBuilder_.addMessage(value); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder addUpdates( int index, com.authzed.api.v1.Core.RelationshipUpdate value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.add(index, value); onChanged(); } else { updatesBuilder_.addMessage(index, value); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder addUpdates( com.authzed.api.v1.Core.RelationshipUpdate.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(builderForValue.build()); onChanged(); } else { updatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder addUpdates( int index, com.authzed.api.v1.Core.RelationshipUpdate.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(index, builderForValue.build()); onChanged(); } else { updatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder clearUpdates() { if (updatesBuilder_ == null) { updates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { updatesBuilder_.clear(); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.remove(index); onChanged(); } else { updatesBuilder_.remove(index); } return this; } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public com.authzed.api.v1.Core.RelationshipUpdate.Builder getUpdatesBuilder( int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public com.authzed.api.v1.Core.RelationshipUpdateOrBuilder getUpdatesOrBuilder( int index) { if (updatesBuilder_ == null) { return updates_.get(index); } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public java.util.List getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(updates_); } } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public com.authzed.api.v1.Core.RelationshipUpdate.Builder addUpdatesBuilder() { return getUpdatesFieldBuilder().addBuilder( com.authzed.api.v1.Core.RelationshipUpdate.getDefaultInstance()); } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public com.authzed.api.v1.Core.RelationshipUpdate.Builder addUpdatesBuilder( int index) { return getUpdatesFieldBuilder().addBuilder( index, com.authzed.api.v1.Core.RelationshipUpdate.getDefaultInstance()); } /** * repeated .authzed.api.v1.RelationshipUpdate updates = 1; */ public java.util.List getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.authzed.api.v1.Core.RelationshipUpdate, com.authzed.api.v1.Core.RelationshipUpdate.Builder, com.authzed.api.v1.Core.RelationshipUpdateOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.authzed.api.v1.Core.RelationshipUpdate, com.authzed.api.v1.Core.RelationshipUpdate.Builder, com.authzed.api.v1.Core.RelationshipUpdateOrBuilder>( updates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); updates_ = null; } return updatesBuilder_; } private com.authzed.api.v1.Core.ZedToken changesThrough_; private com.google.protobuf.SingleFieldBuilderV3< com.authzed.api.v1.Core.ZedToken, com.authzed.api.v1.Core.ZedToken.Builder, com.authzed.api.v1.Core.ZedTokenOrBuilder> changesThroughBuilder_; /** * .authzed.api.v1.ZedToken changes_through = 2; * @return Whether the changesThrough field is set. */ public boolean hasChangesThrough() { return ((bitField0_ & 0x00000002) != 0); } /** * .authzed.api.v1.ZedToken changes_through = 2; * @return The changesThrough. */ public com.authzed.api.v1.Core.ZedToken getChangesThrough() { if (changesThroughBuilder_ == null) { return changesThrough_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : changesThrough_; } else { return changesThroughBuilder_.getMessage(); } } /** * .authzed.api.v1.ZedToken changes_through = 2; */ public Builder setChangesThrough(com.authzed.api.v1.Core.ZedToken value) { if (changesThroughBuilder_ == null) { if (value == null) { throw new NullPointerException(); } changesThrough_ = value; } else { changesThroughBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .authzed.api.v1.ZedToken changes_through = 2; */ public Builder setChangesThrough( com.authzed.api.v1.Core.ZedToken.Builder builderForValue) { if (changesThroughBuilder_ == null) { changesThrough_ = builderForValue.build(); } else { changesThroughBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .authzed.api.v1.ZedToken changes_through = 2; */ public Builder mergeChangesThrough(com.authzed.api.v1.Core.ZedToken value) { if (changesThroughBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && changesThrough_ != null && changesThrough_ != com.authzed.api.v1.Core.ZedToken.getDefaultInstance()) { getChangesThroughBuilder().mergeFrom(value); } else { changesThrough_ = value; } } else { changesThroughBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .authzed.api.v1.ZedToken changes_through = 2; */ public Builder clearChangesThrough() { bitField0_ = (bitField0_ & ~0x00000002); changesThrough_ = null; if (changesThroughBuilder_ != null) { changesThroughBuilder_.dispose(); changesThroughBuilder_ = null; } onChanged(); return this; } /** * .authzed.api.v1.ZedToken changes_through = 2; */ public com.authzed.api.v1.Core.ZedToken.Builder getChangesThroughBuilder() { bitField0_ |= 0x00000002; onChanged(); return getChangesThroughFieldBuilder().getBuilder(); } /** * .authzed.api.v1.ZedToken changes_through = 2; */ public com.authzed.api.v1.Core.ZedTokenOrBuilder getChangesThroughOrBuilder() { if (changesThroughBuilder_ != null) { return changesThroughBuilder_.getMessageOrBuilder(); } else { return changesThrough_ == null ? com.authzed.api.v1.Core.ZedToken.getDefaultInstance() : changesThrough_; } } /** * .authzed.api.v1.ZedToken changes_through = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.authzed.api.v1.Core.ZedToken, com.authzed.api.v1.Core.ZedToken.Builder, com.authzed.api.v1.Core.ZedTokenOrBuilder> getChangesThroughFieldBuilder() { if (changesThroughBuilder_ == null) { changesThroughBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.authzed.api.v1.Core.ZedToken, com.authzed.api.v1.Core.ZedToken.Builder, com.authzed.api.v1.Core.ZedTokenOrBuilder>( getChangesThrough(), getParentForChildren(), isClean()); changesThrough_ = null; } return changesThroughBuilder_; } @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:authzed.api.v1.WatchResponse) } // @@protoc_insertion_point(class_scope:authzed.api.v1.WatchResponse) private static final com.authzed.api.v1.WatchServiceOuterClass.WatchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.authzed.api.v1.WatchServiceOuterClass.WatchResponse(); } public static com.authzed.api.v1.WatchServiceOuterClass.WatchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WatchResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.authzed.api.v1.WatchServiceOuterClass.WatchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_authzed_api_v1_WatchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_authzed_api_v1_WatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_authzed_api_v1_WatchResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_authzed_api_v1_WatchResponse_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\"authzed/api/v1/watch_service.proto\022\016au" + "thzed.api.v1\032\034google/api/annotations.pro" + "to\032\027validate/validate.proto\032\031authzed/api" + "/v1/core.proto\"\275\001\n\014WatchRequest\022t\n\025optio" + "nal_object_types\030\001 \003(\tBU\372B\005\222\001\002\010\000\372BJ\222\001G\"E" + "rC(\200\0012>^([a-z][a-z0-9_]{1,62}[a-z0-9]/)?" + "[a-z][a-z0-9_]{1,62}[a-z0-9]$\0227\n\025optiona" + "l_start_cursor\030\002 \001(\0132\030.authzed.api.v1.Ze" + "dToken\"w\n\rWatchResponse\0223\n\007updates\030\001 \003(\013" + "2\".authzed.api.v1.RelationshipUpdate\0221\n\017" + "changes_through\030\002 \001(\0132\030.authzed.api.v1.Z" + "edToken2l\n\014WatchService\022\\\n\005Watch\022\034.authz" + "ed.api.v1.WatchRequest\032\035.authzed.api.v1." + "WatchResponse\"\024\202\323\344\223\002\016\"\t/v1/watch:\001*0\001BH\n" + "\022com.authzed.api.v1Z2github.com/authzed/" + "authzed-go/proto/authzed/api/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), io.envoyproxy.pgv.validate.Validate.getDescriptor(), com.authzed.api.v1.Core.getDescriptor(), }); internal_static_authzed_api_v1_WatchRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_authzed_api_v1_WatchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_authzed_api_v1_WatchRequest_descriptor, new java.lang.String[] { "OptionalObjectTypes", "OptionalStartCursor", }); internal_static_authzed_api_v1_WatchResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_authzed_api_v1_WatchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_authzed_api_v1_WatchResponse_descriptor, new java.lang.String[] { "Updates", "ChangesThrough", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(io.envoyproxy.pgv.validate.Validate.rules); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); io.envoyproxy.pgv.validate.Validate.getDescriptor(); com.authzed.api.v1.Core.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy