Class OnlineQueryResponseOptions

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ai.chalk.protos.chalk.common.v1.OnlineQueryResponseOptions
All Implemented Interfaces:
OnlineQueryResponseOptionsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class OnlineQueryResponseOptions extends com.google.protobuf.GeneratedMessageV3 implements OnlineQueryResponseOptionsOrBuilder
 Options re: how we construct the response, shouldn't affect the query hash
 
Protobuf type chalk.common.v1.OnlineQueryResponseOptions
See Also:
  • Field Details

    • INCLUDE_META_FIELD_NUMBER

      public static final int INCLUDE_META_FIELD_NUMBER
      See Also:
    • EXPLAIN_FIELD_NUMBER

      public static final int EXPLAIN_FIELD_NUMBER
      See Also:
    • ENCODING_OPTIONS_FIELD_NUMBER

      public static final int ENCODING_OPTIONS_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getIncludeMeta

      public boolean getIncludeMeta()
      bool include_meta = 1 [json_name = "includeMeta"];
      Specified by:
      getIncludeMeta in interface OnlineQueryResponseOptionsOrBuilder
      Returns:
      The includeMeta.
    • hasExplain

      public boolean hasExplain()
      .chalk.common.v1.ExplainOptions explain = 2 [json_name = "explain"];
      Specified by:
      hasExplain in interface OnlineQueryResponseOptionsOrBuilder
      Returns:
      Whether the explain field is set.
    • getExplain

      public ExplainOptions getExplain()
      .chalk.common.v1.ExplainOptions explain = 2 [json_name = "explain"];
      Specified by:
      getExplain in interface OnlineQueryResponseOptionsOrBuilder
      Returns:
      The explain.
    • getExplainOrBuilder

      public ExplainOptionsOrBuilder getExplainOrBuilder()
      .chalk.common.v1.ExplainOptions explain = 2 [json_name = "explain"];
      Specified by:
      getExplainOrBuilder in interface OnlineQueryResponseOptionsOrBuilder
    • hasEncodingOptions

      public boolean hasEncodingOptions()
      .chalk.common.v1.FeatureEncodingOptions encoding_options = 3 [json_name = "encodingOptions"];
      Specified by:
      hasEncodingOptions in interface OnlineQueryResponseOptionsOrBuilder
      Returns:
      Whether the encodingOptions field is set.
    • getEncodingOptions

      public FeatureEncodingOptions getEncodingOptions()
      .chalk.common.v1.FeatureEncodingOptions encoding_options = 3 [json_name = "encodingOptions"];
      Specified by:
      getEncodingOptions in interface OnlineQueryResponseOptionsOrBuilder
      Returns:
      The encodingOptions.
    • getEncodingOptionsOrBuilder

      public FeatureEncodingOptionsOrBuilder getEncodingOptionsOrBuilder()
      .chalk.common.v1.FeatureEncodingOptions encoding_options = 3 [json_name = "encodingOptions"];
      Specified by:
      getEncodingOptionsOrBuilder in interface OnlineQueryResponseOptionsOrBuilder
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: OnlineQueryResponseOptionsOrBuilder
       Customer-provided metadata that gets returned in the response
       
      map<string, string> metadata = 4 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface OnlineQueryResponseOptionsOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Customer-provided metadata that gets returned in the response
       
      map<string, string> metadata = 4 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface OnlineQueryResponseOptionsOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface OnlineQueryResponseOptionsOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Customer-provided metadata that gets returned in the response
       
      map<string, string> metadata = 4 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface OnlineQueryResponseOptionsOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Customer-provided metadata that gets returned in the response
       
      map<string, string> metadata = 4 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface OnlineQueryResponseOptionsOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Customer-provided metadata that gets returned in the response
       
      map<string, string> metadata = 4 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface OnlineQueryResponseOptionsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OnlineQueryResponseOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OnlineQueryResponseOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OnlineQueryResponseOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public OnlineQueryResponseOptions.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static OnlineQueryResponseOptions.Builder newBuilder()
    • newBuilder

      public static OnlineQueryResponseOptions.Builder newBuilder(OnlineQueryResponseOptions prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OnlineQueryResponseOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static OnlineQueryResponseOptions getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OnlineQueryResponseOptions> parser()
    • getParserForType

      public com.google.protobuf.Parser<OnlineQueryResponseOptions> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public OnlineQueryResponseOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder