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

io.provenance.scope.contract.proto.IndexProto Maven / Gradle / Ivy

Go to download

A collection of libraries that interact and run Provenance Java based contracts.

There is a newer version: 0.7.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/provenance/scope/contract/index.proto

package io.provenance.scope.contract.proto;

public final class IndexProto {
  private IndexProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(io.provenance.scope.contract.proto.IndexProto.messageIndex);
    registry.add(io.provenance.scope.contract.proto.IndexProto.index);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface IndexOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.Index)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .io.provenance.scope.contract.Index.Behavior index = 1;
     * @return The enum numeric value on the wire for index.
     */
    int getIndexValue();
    /**
     * .io.provenance.scope.contract.Index.Behavior index = 1;
     * @return The index.
     */
    io.provenance.scope.contract.proto.IndexProto.Index.Behavior getIndex();
  }
  /**
   * 
   * Metadata to flag indexing by p8e indexer
   * 
* * Protobuf type {@code io.provenance.scope.contract.Index} */ public static final class Index extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.provenance.scope.contract.Index) IndexOrBuilder { private static final long serialVersionUID = 0L; // Use Index.newBuilder() to construct. private Index(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Index() { index_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Index(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Index( 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 8: { int rawValue = input.readEnum(); index_ = rawValue; 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 io.provenance.scope.contract.proto.IndexProto.internal_static_io_provenance_scope_contract_Index_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.contract.proto.IndexProto.internal_static_io_provenance_scope_contract_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.contract.proto.IndexProto.Index.class, io.provenance.scope.contract.proto.IndexProto.Index.Builder.class); } /** * Protobuf enum {@code io.provenance.scope.contract.Index.Behavior} */ public enum Behavior implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET = 0; */ NOT_SET(0), /** *
       * Never index
       * 
* * NEVER = 1; */ NEVER(1), /** *
       * Always index
       * 
* * ALWAYS = 2; */ ALWAYS(2), /** *
       * Index unless Parent says otherwise
       * 
* * INDEX_DEFER_PARENT = 3; */ INDEX_DEFER_PARENT(3), /** *
       * Don't index unless Parent says otherwise
       * 
* * NO_INDEX_DEFER_PARENT = 4; */ NO_INDEX_DEFER_PARENT(4), UNRECOGNIZED(-1), ; /** * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** *
       * Never index
       * 
* * NEVER = 1; */ public static final int NEVER_VALUE = 1; /** *
       * Always index
       * 
* * ALWAYS = 2; */ public static final int ALWAYS_VALUE = 2; /** *
       * Index unless Parent says otherwise
       * 
* * INDEX_DEFER_PARENT = 3; */ public static final int INDEX_DEFER_PARENT_VALUE = 3; /** *
       * Don't index unless Parent says otherwise
       * 
* * NO_INDEX_DEFER_PARENT = 4; */ public static final int NO_INDEX_DEFER_PARENT_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Behavior valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Behavior forNumber(int value) { switch (value) { case 0: return NOT_SET; case 1: return NEVER; case 2: return ALWAYS; case 3: return INDEX_DEFER_PARENT; case 4: return NO_INDEX_DEFER_PARENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Behavior> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Behavior findValueByNumber(int number) { return Behavior.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.provenance.scope.contract.proto.IndexProto.Index.getDescriptor().getEnumTypes().get(0); } private static final Behavior[] VALUES = values(); public static Behavior valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Behavior(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:io.provenance.scope.contract.Index.Behavior) } public static final int INDEX_FIELD_NUMBER = 1; private int index_; /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @return The enum numeric value on the wire for index. */ @java.lang.Override public int getIndexValue() { return index_; } /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @return The index. */ @java.lang.Override public io.provenance.scope.contract.proto.IndexProto.Index.Behavior getIndex() { @SuppressWarnings("deprecation") io.provenance.scope.contract.proto.IndexProto.Index.Behavior result = io.provenance.scope.contract.proto.IndexProto.Index.Behavior.valueOf(index_); return result == null ? io.provenance.scope.contract.proto.IndexProto.Index.Behavior.UNRECOGNIZED : result; } 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 (index_ != io.provenance.scope.contract.proto.IndexProto.Index.Behavior.NOT_SET.getNumber()) { output.writeEnum(1, index_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != io.provenance.scope.contract.proto.IndexProto.Index.Behavior.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, index_); } 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 io.provenance.scope.contract.proto.IndexProto.Index)) { return super.equals(obj); } io.provenance.scope.contract.proto.IndexProto.Index other = (io.provenance.scope.contract.proto.IndexProto.Index) obj; if (index_ != other.index_) 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + index_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.scope.contract.proto.IndexProto.Index parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.IndexProto.Index 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 io.provenance.scope.contract.proto.IndexProto.Index parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.IndexProto.Index 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 io.provenance.scope.contract.proto.IndexProto.Index parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.scope.contract.proto.IndexProto.Index 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(io.provenance.scope.contract.proto.IndexProto.Index 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; } /** *
     * Metadata to flag indexing by p8e indexer
     * 
* * Protobuf type {@code io.provenance.scope.contract.Index} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.Index) io.provenance.scope.contract.proto.IndexProto.IndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.scope.contract.proto.IndexProto.internal_static_io_provenance_scope_contract_Index_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.scope.contract.proto.IndexProto.internal_static_io_provenance_scope_contract_Index_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.scope.contract.proto.IndexProto.Index.class, io.provenance.scope.contract.proto.IndexProto.Index.Builder.class); } // Construct using io.provenance.scope.contract.proto.IndexProto.Index.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(); index_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.scope.contract.proto.IndexProto.internal_static_io_provenance_scope_contract_Index_descriptor; } @java.lang.Override public io.provenance.scope.contract.proto.IndexProto.Index getDefaultInstanceForType() { return io.provenance.scope.contract.proto.IndexProto.Index.getDefaultInstance(); } @java.lang.Override public io.provenance.scope.contract.proto.IndexProto.Index build() { io.provenance.scope.contract.proto.IndexProto.Index result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.scope.contract.proto.IndexProto.Index buildPartial() { io.provenance.scope.contract.proto.IndexProto.Index result = new io.provenance.scope.contract.proto.IndexProto.Index(this); result.index_ = index_; 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 io.provenance.scope.contract.proto.IndexProto.Index) { return mergeFrom((io.provenance.scope.contract.proto.IndexProto.Index)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.scope.contract.proto.IndexProto.Index other) { if (other == io.provenance.scope.contract.proto.IndexProto.Index.getDefaultInstance()) return this; if (other.index_ != 0) { setIndexValue(other.getIndexValue()); } 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 { io.provenance.scope.contract.proto.IndexProto.Index parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.scope.contract.proto.IndexProto.Index) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int index_ = 0; /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @return The enum numeric value on the wire for index. */ @java.lang.Override public int getIndexValue() { return index_; } /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @param value The enum numeric value on the wire for index to set. * @return This builder for chaining. */ public Builder setIndexValue(int value) { index_ = value; onChanged(); return this; } /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @return The index. */ @java.lang.Override public io.provenance.scope.contract.proto.IndexProto.Index.Behavior getIndex() { @SuppressWarnings("deprecation") io.provenance.scope.contract.proto.IndexProto.Index.Behavior result = io.provenance.scope.contract.proto.IndexProto.Index.Behavior.valueOf(index_); return result == null ? io.provenance.scope.contract.proto.IndexProto.Index.Behavior.UNRECOGNIZED : result; } /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(io.provenance.scope.contract.proto.IndexProto.Index.Behavior value) { if (value == null) { throw new NullPointerException(); } index_ = value.getNumber(); onChanged(); return this; } /** * .io.provenance.scope.contract.Index.Behavior index = 1; * @return This builder for chaining. */ public Builder clearIndex() { index_ = 0; 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:io.provenance.scope.contract.Index) } // @@protoc_insertion_point(class_scope:io.provenance.scope.contract.Index) private static final io.provenance.scope.contract.proto.IndexProto.Index DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.IndexProto.Index(); } public static io.provenance.scope.contract.proto.IndexProto.Index getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Index parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Index(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 io.provenance.scope.contract.proto.IndexProto.Index getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MESSAGE_INDEX_FIELD_NUMBER = 65534; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, io.provenance.scope.contract.proto.IndexProto.Index> messageIndex = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( io.provenance.scope.contract.proto.IndexProto.Index.class, io.provenance.scope.contract.proto.IndexProto.Index.getDefaultInstance()); public static final int INDEX_FIELD_NUMBER = 65535; /** * extend .google.protobuf.FieldOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, io.provenance.scope.contract.proto.IndexProto.Index> index = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( io.provenance.scope.contract.proto.IndexProto.Index.class, io.provenance.scope.contract.proto.IndexProto.Index.getDefaultInstance()); private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_provenance_scope_contract_Index_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_provenance_scope_contract_Index_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(io/provenance/scope/contract/index.pro" + "to\022\034io.provenance.scope.contract\032 google" + "/protobuf/descriptor.proto\"\247\001\n\005Index\022;\n\005" + "index\030\001 \001(\0162,.io.provenance.scope.contra" + "ct.Index.Behavior\"a\n\010Behavior\022\013\n\007NOT_SET" + "\020\000\022\t\n\005NEVER\020\001\022\n\n\006ALWAYS\020\002\022\026\n\022INDEX_DEFER" + "_PARENT\020\003\022\031\n\025NO_INDEX_DEFER_PARENT\020\004:]\n\r" + "message_index\022\037.google.protobuf.MessageO" + "ptions\030\376\377\003 \001(\0132#.io.provenance.scope.con" + "tract.Index:S\n\005index\022\035.google.protobuf.F" + "ieldOptions\030\377\377\003 \001(\0132#.io.provenance.scop" + "e.contract.IndexB0\n\"io.provenance.scope." + "contract.protoB\nIndexProtob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), }); internal_static_io_provenance_scope_contract_Index_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_provenance_scope_contract_Index_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_provenance_scope_contract_Index_descriptor, new java.lang.String[] { "Index", }); messageIndex.internalInit(descriptor.getExtensions().get(0)); index.internalInit(descriptor.getExtensions().get(1)); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy