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

com.volcengine.model.maas.api.Api Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proxy.proto

package com.volcengine.model.maas.api;

public final class Api {
  private Api() {}
  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 FunctionCallOrBuilder extends
      // @@protoc_insertion_point(interface_extends:api.FunctionCall)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The name of the function to call.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name of the function to call.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The arguments to call the function with, generated by model, formatted as
     * json, may not valid, the caller should validate the arguments before
     * calling the function.
     * 
* * string arguments = 2; * @return The arguments. */ java.lang.String getArguments(); /** *
     * The arguments to call the function with, generated by model, formatted as
     * json, may not valid, the caller should validate the arguments before
     * calling the function.
     * 
* * string arguments = 2; * @return The bytes for arguments. */ com.google.protobuf.ByteString getArgumentsBytes(); } /** * Protobuf type {@code api.FunctionCall} */ public static final class FunctionCall extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.FunctionCall) FunctionCallOrBuilder { private static final long serialVersionUID = 0L; // Use FunctionCall.newBuilder() to construct. private FunctionCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FunctionCall() { name_ = ""; arguments_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FunctionCall(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_FunctionCall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_FunctionCall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.FunctionCall.class, com.volcengine.model.maas.api.Api.FunctionCall.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * The name of the function to call.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * The name of the function to call.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENTS_FIELD_NUMBER = 2; private volatile java.lang.Object arguments_; /** *
     * The arguments to call the function with, generated by model, formatted as
     * json, may not valid, the caller should validate the arguments before
     * calling the function.
     * 
* * string arguments = 2; * @return The arguments. */ @java.lang.Override public java.lang.String getArguments() { java.lang.Object ref = arguments_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); arguments_ = s; return s; } } /** *
     * The arguments to call the function with, generated by model, formatted as
     * json, may not valid, the caller should validate the arguments before
     * calling the function.
     * 
* * string arguments = 2; * @return The bytes for arguments. */ @java.lang.Override public com.google.protobuf.ByteString getArgumentsBytes() { java.lang.Object ref = arguments_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); arguments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(arguments_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, arguments_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(arguments_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, arguments_); } 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.volcengine.model.maas.api.Api.FunctionCall)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.FunctionCall other = (com.volcengine.model.maas.api.Api.FunctionCall) obj; if (!getName() .equals(other.getName())) return false; if (!getArguments() .equals(other.getArguments())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArguments().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.FunctionCall parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.FunctionCall 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.volcengine.model.maas.api.Api.FunctionCall parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.FunctionCall 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.volcengine.model.maas.api.Api.FunctionCall parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.FunctionCall 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.volcengine.model.maas.api.Api.FunctionCall 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; } /** * Protobuf type {@code api.FunctionCall} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.FunctionCall) com.volcengine.model.maas.api.Api.FunctionCallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_FunctionCall_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_FunctionCall_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.FunctionCall.class, com.volcengine.model.maas.api.Api.FunctionCall.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.FunctionCall.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; arguments_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_FunctionCall_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.FunctionCall getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.FunctionCall.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.FunctionCall build() { com.volcengine.model.maas.api.Api.FunctionCall result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.FunctionCall buildPartial() { com.volcengine.model.maas.api.Api.FunctionCall result = new com.volcengine.model.maas.api.Api.FunctionCall(this); result.name_ = name_; result.arguments_ = arguments_; 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 com.volcengine.model.maas.api.Api.FunctionCall) { return mergeFrom((com.volcengine.model.maas.api.Api.FunctionCall)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.FunctionCall other) { if (other == com.volcengine.model.maas.api.Api.FunctionCall.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getArguments().isEmpty()) { arguments_ = other.arguments_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { arguments_ = input.readStringRequireUtf8(); 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 java.lang.Object name_ = ""; /** *
       * The name of the function to call.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the function to call.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the function to call.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * The name of the function to call.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name of the function to call.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object arguments_ = ""; /** *
       * The arguments to call the function with, generated by model, formatted as
       * json, may not valid, the caller should validate the arguments before
       * calling the function.
       * 
* * string arguments = 2; * @return The arguments. */ public java.lang.String getArguments() { java.lang.Object ref = arguments_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); arguments_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The arguments to call the function with, generated by model, formatted as
       * json, may not valid, the caller should validate the arguments before
       * calling the function.
       * 
* * string arguments = 2; * @return The bytes for arguments. */ public com.google.protobuf.ByteString getArgumentsBytes() { java.lang.Object ref = arguments_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); arguments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The arguments to call the function with, generated by model, formatted as
       * json, may not valid, the caller should validate the arguments before
       * calling the function.
       * 
* * string arguments = 2; * @param value The arguments to set. * @return This builder for chaining. */ public Builder setArguments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } arguments_ = value; onChanged(); return this; } /** *
       * The arguments to call the function with, generated by model, formatted as
       * json, may not valid, the caller should validate the arguments before
       * calling the function.
       * 
* * string arguments = 2; * @return This builder for chaining. */ public Builder clearArguments() { arguments_ = getDefaultInstance().getArguments(); onChanged(); return this; } /** *
       * The arguments to call the function with, generated by model, formatted as
       * json, may not valid, the caller should validate the arguments before
       * calling the function.
       * 
* * string arguments = 2; * @param value The bytes for arguments to set. * @return This builder for chaining. */ public Builder setArgumentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); arguments_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.FunctionCall) } // @@protoc_insertion_point(class_scope:api.FunctionCall) private static final com.volcengine.model.maas.api.Api.FunctionCall DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.FunctionCall(); } public static com.volcengine.model.maas.api.Api.FunctionCall getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionCall 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.volcengine.model.maas.api.Api.FunctionCall getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopLogprobsItemOrBuilder extends // @@protoc_insertion_point(interface_extends:api.TopLogprobsItem) com.google.protobuf.MessageOrBuilder { /** * map<string, float> item = 1; */ int getItemCount(); /** * map<string, float> item = 1; */ boolean containsItem( java.lang.String key); /** * Use {@link #getItemMap()} instead. */ @java.lang.Deprecated java.util.Map getItem(); /** * map<string, float> item = 1; */ java.util.Map getItemMap(); /** * map<string, float> item = 1; */ float getItemOrDefault( java.lang.String key, float defaultValue); /** * map<string, float> item = 1; */ float getItemOrThrow( java.lang.String key); } /** * Protobuf type {@code api.TopLogprobsItem} */ public static final class TopLogprobsItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.TopLogprobsItem) TopLogprobsItemOrBuilder { private static final long serialVersionUID = 0L; // Use TopLogprobsItem.newBuilder() to construct. private TopLogprobsItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopLogprobsItem() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopLogprobsItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_TopLogprobsItem_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetItem(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_TopLogprobsItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.TopLogprobsItem.class, com.volcengine.model.maas.api.Api.TopLogprobsItem.Builder.class); } public static final int ITEM_FIELD_NUMBER = 1; private static final class ItemDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Float> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.volcengine.model.maas.api.Api.internal_static_api_TopLogprobsItem_ItemEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.FLOAT, 0F); } private com.google.protobuf.MapField< java.lang.String, java.lang.Float> item_; private com.google.protobuf.MapField internalGetItem() { if (item_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemDefaultEntryHolder.defaultEntry); } return item_; } public int getItemCount() { return internalGetItem().getMap().size(); } /** * map<string, float> item = 1; */ @java.lang.Override public boolean containsItem( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetItem().getMap().containsKey(key); } /** * Use {@link #getItemMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getItem() { return getItemMap(); } /** * map<string, float> item = 1; */ @java.lang.Override public java.util.Map getItemMap() { return internalGetItem().getMap(); } /** * map<string, float> item = 1; */ @java.lang.Override public float getItemOrDefault( java.lang.String key, float defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetItem().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, float> item = 1; */ @java.lang.Override public float getItemOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetItem().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetItem(), ItemDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetItem().getMap().entrySet()) { com.google.protobuf.MapEntry item__ = ItemDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, item__); } 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.volcengine.model.maas.api.Api.TopLogprobsItem)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.TopLogprobsItem other = (com.volcengine.model.maas.api.Api.TopLogprobsItem) obj; if (!internalGetItem().equals( other.internalGetItem())) 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 (!internalGetItem().getMap().isEmpty()) { hash = (37 * hash) + ITEM_FIELD_NUMBER; hash = (53 * hash) + internalGetItem().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem 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.volcengine.model.maas.api.Api.TopLogprobsItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem 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.volcengine.model.maas.api.Api.TopLogprobsItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem 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.volcengine.model.maas.api.Api.TopLogprobsItem 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; } /** * Protobuf type {@code api.TopLogprobsItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.TopLogprobsItem) com.volcengine.model.maas.api.Api.TopLogprobsItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_TopLogprobsItem_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetItem(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableItem(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_TopLogprobsItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.TopLogprobsItem.class, com.volcengine.model.maas.api.Api.TopLogprobsItem.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.TopLogprobsItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableItem().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_TopLogprobsItem_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.TopLogprobsItem getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.TopLogprobsItem.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.TopLogprobsItem build() { com.volcengine.model.maas.api.Api.TopLogprobsItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.TopLogprobsItem buildPartial() { com.volcengine.model.maas.api.Api.TopLogprobsItem result = new com.volcengine.model.maas.api.Api.TopLogprobsItem(this); int from_bitField0_ = bitField0_; result.item_ = internalGetItem(); result.item_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.TopLogprobsItem) { return mergeFrom((com.volcengine.model.maas.api.Api.TopLogprobsItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.TopLogprobsItem other) { if (other == com.volcengine.model.maas.api.Api.TopLogprobsItem.getDefaultInstance()) return this; internalGetMutableItem().mergeFrom( other.internalGetItem()); 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.google.protobuf.MapEntry item__ = input.readMessage( ItemDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableItem().getMutableMap().put( item__.getKey(), item__.getValue()); break; } // case 10 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.MapField< java.lang.String, java.lang.Float> item_; private com.google.protobuf.MapField internalGetItem() { if (item_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemDefaultEntryHolder.defaultEntry); } return item_; } private com.google.protobuf.MapField internalGetMutableItem() { onChanged();; if (item_ == null) { item_ = com.google.protobuf.MapField.newMapField( ItemDefaultEntryHolder.defaultEntry); } if (!item_.isMutable()) { item_ = item_.copy(); } return item_; } public int getItemCount() { return internalGetItem().getMap().size(); } /** * map<string, float> item = 1; */ @java.lang.Override public boolean containsItem( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetItem().getMap().containsKey(key); } /** * Use {@link #getItemMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getItem() { return getItemMap(); } /** * map<string, float> item = 1; */ @java.lang.Override public java.util.Map getItemMap() { return internalGetItem().getMap(); } /** * map<string, float> item = 1; */ @java.lang.Override public float getItemOrDefault( java.lang.String key, float defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetItem().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, float> item = 1; */ @java.lang.Override public float getItemOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetItem().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearItem() { internalGetMutableItem().getMutableMap() .clear(); return this; } /** * map<string, float> item = 1; */ public Builder removeItem( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableItem().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableItem() { return internalGetMutableItem().getMutableMap(); } /** * map<string, float> item = 1; */ public Builder putItem( java.lang.String key, float value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableItem().getMutableMap() .put(key, value); return this; } /** * map<string, float> item = 1; */ public Builder putAllItem( java.util.Map values) { internalGetMutableItem().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.TopLogprobsItem) } // @@protoc_insertion_point(class_scope:api.TopLogprobsItem) private static final com.volcengine.model.maas.api.Api.TopLogprobsItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.TopLogprobsItem(); } public static com.volcengine.model.maas.api.Api.TopLogprobsItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopLogprobsItem 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.volcengine.model.maas.api.Api.TopLogprobsItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LogprobsOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Logprobs) com.google.protobuf.MessageOrBuilder { /** * repeated int64 text_offset = 1; * @return A list containing the textOffset. */ java.util.List getTextOffsetList(); /** * repeated int64 text_offset = 1; * @return The count of textOffset. */ int getTextOffsetCount(); /** * repeated int64 text_offset = 1; * @param index The index of the element to return. * @return The textOffset at the given index. */ long getTextOffset(int index); /** * repeated double token_logprobs = 2; * @return A list containing the tokenLogprobs. */ java.util.List getTokenLogprobsList(); /** * repeated double token_logprobs = 2; * @return The count of tokenLogprobs. */ int getTokenLogprobsCount(); /** * repeated double token_logprobs = 2; * @param index The index of the element to return. * @return The tokenLogprobs at the given index. */ double getTokenLogprobs(int index); /** * repeated string tokens = 3; * @return A list containing the tokens. */ java.util.List getTokensList(); /** * repeated string tokens = 3; * @return The count of tokens. */ int getTokensCount(); /** * repeated string tokens = 3; * @param index The index of the element to return. * @return The tokens at the given index. */ java.lang.String getTokens(int index); /** * repeated string tokens = 3; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ com.google.protobuf.ByteString getTokensBytes(int index); /** * .google.protobuf.ListValue top_logprobs = 4; * @return Whether the topLogprobs field is set. */ boolean hasTopLogprobs(); /** * .google.protobuf.ListValue top_logprobs = 4; * @return The topLogprobs. */ com.google.protobuf.ListValue getTopLogprobs(); /** * .google.protobuf.ListValue top_logprobs = 4; */ com.google.protobuf.ListValueOrBuilder getTopLogprobsOrBuilder(); } /** * Protobuf type {@code api.Logprobs} */ public static final class Logprobs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Logprobs) LogprobsOrBuilder { private static final long serialVersionUID = 0L; // Use Logprobs.newBuilder() to construct. private Logprobs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Logprobs() { textOffset_ = emptyLongList(); tokenLogprobs_ = emptyDoubleList(); tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Logprobs(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Logprobs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Logprobs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Logprobs.class, com.volcengine.model.maas.api.Api.Logprobs.Builder.class); } public static final int TEXT_OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Internal.LongList textOffset_; /** * repeated int64 text_offset = 1; * @return A list containing the textOffset. */ @java.lang.Override public java.util.List getTextOffsetList() { return textOffset_; } /** * repeated int64 text_offset = 1; * @return The count of textOffset. */ public int getTextOffsetCount() { return textOffset_.size(); } /** * repeated int64 text_offset = 1; * @param index The index of the element to return. * @return The textOffset at the given index. */ public long getTextOffset(int index) { return textOffset_.getLong(index); } private int textOffsetMemoizedSerializedSize = -1; public static final int TOKEN_LOGPROBS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.DoubleList tokenLogprobs_; /** * repeated double token_logprobs = 2; * @return A list containing the tokenLogprobs. */ @java.lang.Override public java.util.List getTokenLogprobsList() { return tokenLogprobs_; } /** * repeated double token_logprobs = 2; * @return The count of tokenLogprobs. */ public int getTokenLogprobsCount() { return tokenLogprobs_.size(); } /** * repeated double token_logprobs = 2; * @param index The index of the element to return. * @return The tokenLogprobs at the given index. */ public double getTokenLogprobs(int index) { return tokenLogprobs_.getDouble(index); } private int tokenLogprobsMemoizedSerializedSize = -1; public static final int TOKENS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList tokens_; /** * repeated string tokens = 3; * @return A list containing the tokens. */ public com.google.protobuf.ProtocolStringList getTokensList() { return tokens_; } /** * repeated string tokens = 3; * @return The count of tokens. */ public int getTokensCount() { return tokens_.size(); } /** * repeated string tokens = 3; * @param index The index of the element to return. * @return The tokens at the given index. */ public java.lang.String getTokens(int index) { return tokens_.get(index); } /** * repeated string tokens = 3; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ public com.google.protobuf.ByteString getTokensBytes(int index) { return tokens_.getByteString(index); } public static final int TOP_LOGPROBS_FIELD_NUMBER = 4; private com.google.protobuf.ListValue topLogprobs_; /** * .google.protobuf.ListValue top_logprobs = 4; * @return Whether the topLogprobs field is set. */ @java.lang.Override public boolean hasTopLogprobs() { return topLogprobs_ != null; } /** * .google.protobuf.ListValue top_logprobs = 4; * @return The topLogprobs. */ @java.lang.Override public com.google.protobuf.ListValue getTopLogprobs() { return topLogprobs_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : topLogprobs_; } /** * .google.protobuf.ListValue top_logprobs = 4; */ @java.lang.Override public com.google.protobuf.ListValueOrBuilder getTopLogprobsOrBuilder() { return getTopLogprobs(); } 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 { getSerializedSize(); if (getTextOffsetList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(textOffsetMemoizedSerializedSize); } for (int i = 0; i < textOffset_.size(); i++) { output.writeInt64NoTag(textOffset_.getLong(i)); } if (getTokenLogprobsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(tokenLogprobsMemoizedSerializedSize); } for (int i = 0; i < tokenLogprobs_.size(); i++) { output.writeDoubleNoTag(tokenLogprobs_.getDouble(i)); } for (int i = 0; i < tokens_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tokens_.getRaw(i)); } if (topLogprobs_ != null) { output.writeMessage(4, getTopLogprobs()); } 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 < textOffset_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(textOffset_.getLong(i)); } size += dataSize; if (!getTextOffsetList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } textOffsetMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getTokenLogprobsList().size(); size += dataSize; if (!getTokenLogprobsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } tokenLogprobsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < tokens_.size(); i++) { dataSize += computeStringSizeNoTag(tokens_.getRaw(i)); } size += dataSize; size += 1 * getTokensList().size(); } if (topLogprobs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTopLogprobs()); } 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.volcengine.model.maas.api.Api.Logprobs)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Logprobs other = (com.volcengine.model.maas.api.Api.Logprobs) obj; if (!getTextOffsetList() .equals(other.getTextOffsetList())) return false; if (!getTokenLogprobsList() .equals(other.getTokenLogprobsList())) return false; if (!getTokensList() .equals(other.getTokensList())) return false; if (hasTopLogprobs() != other.hasTopLogprobs()) return false; if (hasTopLogprobs()) { if (!getTopLogprobs() .equals(other.getTopLogprobs())) 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 (getTextOffsetCount() > 0) { hash = (37 * hash) + TEXT_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getTextOffsetList().hashCode(); } if (getTokenLogprobsCount() > 0) { hash = (37 * hash) + TOKEN_LOGPROBS_FIELD_NUMBER; hash = (53 * hash) + getTokenLogprobsList().hashCode(); } if (getTokensCount() > 0) { hash = (37 * hash) + TOKENS_FIELD_NUMBER; hash = (53 * hash) + getTokensList().hashCode(); } if (hasTopLogprobs()) { hash = (37 * hash) + TOP_LOGPROBS_FIELD_NUMBER; hash = (53 * hash) + getTopLogprobs().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Logprobs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Logprobs 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.volcengine.model.maas.api.Api.Logprobs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Logprobs 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.volcengine.model.maas.api.Api.Logprobs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Logprobs 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.volcengine.model.maas.api.Api.Logprobs 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; } /** * Protobuf type {@code api.Logprobs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Logprobs) com.volcengine.model.maas.api.Api.LogprobsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Logprobs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Logprobs_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Logprobs.class, com.volcengine.model.maas.api.Api.Logprobs.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Logprobs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); textOffset_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); tokenLogprobs_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000002); tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (topLogprobsBuilder_ == null) { topLogprobs_ = null; } else { topLogprobs_ = null; topLogprobsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Logprobs_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Logprobs getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Logprobs.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Logprobs build() { com.volcengine.model.maas.api.Api.Logprobs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Logprobs buildPartial() { com.volcengine.model.maas.api.Api.Logprobs result = new com.volcengine.model.maas.api.Api.Logprobs(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { textOffset_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.textOffset_ = textOffset_; if (((bitField0_ & 0x00000002) != 0)) { tokenLogprobs_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.tokenLogprobs_ = tokenLogprobs_; if (((bitField0_ & 0x00000004) != 0)) { tokens_ = tokens_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.tokens_ = tokens_; if (topLogprobsBuilder_ == null) { result.topLogprobs_ = topLogprobs_; } else { result.topLogprobs_ = topLogprobsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.Logprobs) { return mergeFrom((com.volcengine.model.maas.api.Api.Logprobs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Logprobs other) { if (other == com.volcengine.model.maas.api.Api.Logprobs.getDefaultInstance()) return this; if (!other.textOffset_.isEmpty()) { if (textOffset_.isEmpty()) { textOffset_ = other.textOffset_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTextOffsetIsMutable(); textOffset_.addAll(other.textOffset_); } onChanged(); } if (!other.tokenLogprobs_.isEmpty()) { if (tokenLogprobs_.isEmpty()) { tokenLogprobs_ = other.tokenLogprobs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTokenLogprobsIsMutable(); tokenLogprobs_.addAll(other.tokenLogprobs_); } onChanged(); } if (!other.tokens_.isEmpty()) { if (tokens_.isEmpty()) { tokens_ = other.tokens_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTokensIsMutable(); tokens_.addAll(other.tokens_); } onChanged(); } if (other.hasTopLogprobs()) { mergeTopLogprobs(other.getTopLogprobs()); } 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 8: { long v = input.readInt64(); ensureTextOffsetIsMutable(); textOffset_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTextOffsetIsMutable(); while (input.getBytesUntilLimit() > 0) { textOffset_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 10 case 17: { double v = input.readDouble(); ensureTokenLogprobsIsMutable(); tokenLogprobs_.addDouble(v); break; } // case 17 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTokenLogprobsIsMutable(); while (input.getBytesUntilLimit() > 0) { tokenLogprobs_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureTokensIsMutable(); tokens_.add(s); break; } // case 26 case 34: { input.readMessage( getTopLogprobsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.LongList textOffset_ = emptyLongList(); private void ensureTextOffsetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { textOffset_ = mutableCopy(textOffset_); bitField0_ |= 0x00000001; } } /** * repeated int64 text_offset = 1; * @return A list containing the textOffset. */ public java.util.List getTextOffsetList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(textOffset_) : textOffset_; } /** * repeated int64 text_offset = 1; * @return The count of textOffset. */ public int getTextOffsetCount() { return textOffset_.size(); } /** * repeated int64 text_offset = 1; * @param index The index of the element to return. * @return The textOffset at the given index. */ public long getTextOffset(int index) { return textOffset_.getLong(index); } /** * repeated int64 text_offset = 1; * @param index The index to set the value at. * @param value The textOffset to set. * @return This builder for chaining. */ public Builder setTextOffset( int index, long value) { ensureTextOffsetIsMutable(); textOffset_.setLong(index, value); onChanged(); return this; } /** * repeated int64 text_offset = 1; * @param value The textOffset to add. * @return This builder for chaining. */ public Builder addTextOffset(long value) { ensureTextOffsetIsMutable(); textOffset_.addLong(value); onChanged(); return this; } /** * repeated int64 text_offset = 1; * @param values The textOffset to add. * @return This builder for chaining. */ public Builder addAllTextOffset( java.lang.Iterable values) { ensureTextOffsetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, textOffset_); onChanged(); return this; } /** * repeated int64 text_offset = 1; * @return This builder for chaining. */ public Builder clearTextOffset() { textOffset_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList tokenLogprobs_ = emptyDoubleList(); private void ensureTokenLogprobsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tokenLogprobs_ = mutableCopy(tokenLogprobs_); bitField0_ |= 0x00000002; } } /** * repeated double token_logprobs = 2; * @return A list containing the tokenLogprobs. */ public java.util.List getTokenLogprobsList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(tokenLogprobs_) : tokenLogprobs_; } /** * repeated double token_logprobs = 2; * @return The count of tokenLogprobs. */ public int getTokenLogprobsCount() { return tokenLogprobs_.size(); } /** * repeated double token_logprobs = 2; * @param index The index of the element to return. * @return The tokenLogprobs at the given index. */ public double getTokenLogprobs(int index) { return tokenLogprobs_.getDouble(index); } /** * repeated double token_logprobs = 2; * @param index The index to set the value at. * @param value The tokenLogprobs to set. * @return This builder for chaining. */ public Builder setTokenLogprobs( int index, double value) { ensureTokenLogprobsIsMutable(); tokenLogprobs_.setDouble(index, value); onChanged(); return this; } /** * repeated double token_logprobs = 2; * @param value The tokenLogprobs to add. * @return This builder for chaining. */ public Builder addTokenLogprobs(double value) { ensureTokenLogprobsIsMutable(); tokenLogprobs_.addDouble(value); onChanged(); return this; } /** * repeated double token_logprobs = 2; * @param values The tokenLogprobs to add. * @return This builder for chaining. */ public Builder addAllTokenLogprobs( java.lang.Iterable values) { ensureTokenLogprobsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokenLogprobs_); onChanged(); return this; } /** * repeated double token_logprobs = 2; * @return This builder for chaining. */ public Builder clearTokenLogprobs() { tokenLogprobs_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.LazyStringList tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTokensIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tokens_ = new com.google.protobuf.LazyStringArrayList(tokens_); bitField0_ |= 0x00000004; } } /** * repeated string tokens = 3; * @return A list containing the tokens. */ public com.google.protobuf.ProtocolStringList getTokensList() { return tokens_.getUnmodifiableView(); } /** * repeated string tokens = 3; * @return The count of tokens. */ public int getTokensCount() { return tokens_.size(); } /** * repeated string tokens = 3; * @param index The index of the element to return. * @return The tokens at the given index. */ public java.lang.String getTokens(int index) { return tokens_.get(index); } /** * repeated string tokens = 3; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ public com.google.protobuf.ByteString getTokensBytes(int index) { return tokens_.getByteString(index); } /** * repeated string tokens = 3; * @param index The index to set the value at. * @param value The tokens to set. * @return This builder for chaining. */ public Builder setTokens( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTokensIsMutable(); tokens_.set(index, value); onChanged(); return this; } /** * repeated string tokens = 3; * @param value The tokens to add. * @return This builder for chaining. */ public Builder addTokens( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTokensIsMutable(); tokens_.add(value); onChanged(); return this; } /** * repeated string tokens = 3; * @param values The tokens to add. * @return This builder for chaining. */ public Builder addAllTokens( java.lang.Iterable values) { ensureTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokens_); onChanged(); return this; } /** * repeated string tokens = 3; * @return This builder for chaining. */ public Builder clearTokens() { tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string tokens = 3; * @param value The bytes of the tokens to add. * @return This builder for chaining. */ public Builder addTokensBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTokensIsMutable(); tokens_.add(value); onChanged(); return this; } private com.google.protobuf.ListValue topLogprobs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> topLogprobsBuilder_; /** * .google.protobuf.ListValue top_logprobs = 4; * @return Whether the topLogprobs field is set. */ public boolean hasTopLogprobs() { return topLogprobsBuilder_ != null || topLogprobs_ != null; } /** * .google.protobuf.ListValue top_logprobs = 4; * @return The topLogprobs. */ public com.google.protobuf.ListValue getTopLogprobs() { if (topLogprobsBuilder_ == null) { return topLogprobs_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : topLogprobs_; } else { return topLogprobsBuilder_.getMessage(); } } /** * .google.protobuf.ListValue top_logprobs = 4; */ public Builder setTopLogprobs(com.google.protobuf.ListValue value) { if (topLogprobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } topLogprobs_ = value; onChanged(); } else { topLogprobsBuilder_.setMessage(value); } return this; } /** * .google.protobuf.ListValue top_logprobs = 4; */ public Builder setTopLogprobs( com.google.protobuf.ListValue.Builder builderForValue) { if (topLogprobsBuilder_ == null) { topLogprobs_ = builderForValue.build(); onChanged(); } else { topLogprobsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.ListValue top_logprobs = 4; */ public Builder mergeTopLogprobs(com.google.protobuf.ListValue value) { if (topLogprobsBuilder_ == null) { if (topLogprobs_ != null) { topLogprobs_ = com.google.protobuf.ListValue.newBuilder(topLogprobs_).mergeFrom(value).buildPartial(); } else { topLogprobs_ = value; } onChanged(); } else { topLogprobsBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.ListValue top_logprobs = 4; */ public Builder clearTopLogprobs() { if (topLogprobsBuilder_ == null) { topLogprobs_ = null; onChanged(); } else { topLogprobs_ = null; topLogprobsBuilder_ = null; } return this; } /** * .google.protobuf.ListValue top_logprobs = 4; */ public com.google.protobuf.ListValue.Builder getTopLogprobsBuilder() { onChanged(); return getTopLogprobsFieldBuilder().getBuilder(); } /** * .google.protobuf.ListValue top_logprobs = 4; */ public com.google.protobuf.ListValueOrBuilder getTopLogprobsOrBuilder() { if (topLogprobsBuilder_ != null) { return topLogprobsBuilder_.getMessageOrBuilder(); } else { return topLogprobs_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : topLogprobs_; } } /** * .google.protobuf.ListValue top_logprobs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> getTopLogprobsFieldBuilder() { if (topLogprobsBuilder_ == null) { topLogprobsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( getTopLogprobs(), getParentForChildren(), isClean()); topLogprobs_ = null; } return topLogprobsBuilder_; } @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:api.Logprobs) } // @@protoc_insertion_point(class_scope:api.Logprobs) private static final com.volcengine.model.maas.api.Api.Logprobs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Logprobs(); } public static com.volcengine.model.maas.api.Api.Logprobs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Logprobs 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.volcengine.model.maas.api.Api.Logprobs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Message) com.google.protobuf.MessageOrBuilder { /** *
     * The role of the author of this message. One of system, user, assistant or
     * function.
     * 
* * string role = 1; * @return The role. */ java.lang.String getRole(); /** *
     * The role of the author of this message. One of system, user, assistant or
     * function.
     * 
* * string role = 1; * @return The bytes for role. */ com.google.protobuf.ByteString getRoleBytes(); /** *
     * The real content of the message, may be empty for assistant message with
     * function call.
     * 
* * string content = 2; * @return The content. */ java.lang.String getContent(); /** *
     * The real content of the message, may be empty for assistant message with
     * function call.
     * 
* * string content = 2; * @return The bytes for content. */ com.google.protobuf.ByteString getContentBytes(); /** *
     * If the role is `function`, is the name of the function which generate the
     * content.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * If the role is `function`, is the name of the function which generate the
     * content.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The name and arguments of a function call generated by model.
     * 
* * .api.FunctionCall function_call = 5; * @return Whether the functionCall field is set. */ boolean hasFunctionCall(); /** *
     * The name and arguments of a function call generated by model.
     * 
* * .api.FunctionCall function_call = 5; * @return The functionCall. */ com.volcengine.model.maas.api.Api.FunctionCall getFunctionCall(); /** *
     * The name and arguments of a function call generated by model.
     * 
* * .api.FunctionCall function_call = 5; */ com.volcengine.model.maas.api.Api.FunctionCallOrBuilder getFunctionCallOrBuilder(); /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ java.util.List getReferencesList(); /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ com.volcengine.model.maas.api.Api.Reference getReferences(int index); /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ int getReferencesCount(); /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ java.util.List getReferencesOrBuilderList(); /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ com.volcengine.model.maas.api.Api.ReferenceOrBuilder getReferencesOrBuilder( int index); } /** * Protobuf type {@code api.Message} */ public static final class Message extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Message) MessageOrBuilder { private static final long serialVersionUID = 0L; // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Message() { role_ = ""; content_ = ""; name_ = ""; references_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Message(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Message.class, com.volcengine.model.maas.api.Api.Message.Builder.class); } public static final int ROLE_FIELD_NUMBER = 1; private volatile java.lang.Object role_; /** *
     * The role of the author of this message. One of system, user, assistant or
     * function.
     * 
* * string role = 1; * @return The role. */ @java.lang.Override public java.lang.String getRole() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** *
     * The role of the author of this message. One of system, user, assistant or
     * function.
     * 
* * string role = 1; * @return The bytes for role. */ @java.lang.Override public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTENT_FIELD_NUMBER = 2; private volatile java.lang.Object content_; /** *
     * The real content of the message, may be empty for assistant message with
     * function call.
     * 
* * string content = 2; * @return The content. */ @java.lang.Override public java.lang.String getContent() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } } /** *
     * The real content of the message, may be empty for assistant message with
     * function call.
     * 
* * string content = 2; * @return The bytes for content. */ @java.lang.Override public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * If the role is `function`, is the name of the function which generate the
     * content.
     * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * If the role is `function`, is the name of the function which generate the
     * content.
     * 
* * string name = 4; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FUNCTION_CALL_FIELD_NUMBER = 5; private com.volcengine.model.maas.api.Api.FunctionCall functionCall_; /** *
     * The name and arguments of a function call generated by model.
     * 
* * .api.FunctionCall function_call = 5; * @return Whether the functionCall field is set. */ @java.lang.Override public boolean hasFunctionCall() { return functionCall_ != null; } /** *
     * The name and arguments of a function call generated by model.
     * 
* * .api.FunctionCall function_call = 5; * @return The functionCall. */ @java.lang.Override public com.volcengine.model.maas.api.Api.FunctionCall getFunctionCall() { return functionCall_ == null ? com.volcengine.model.maas.api.Api.FunctionCall.getDefaultInstance() : functionCall_; } /** *
     * The name and arguments of a function call generated by model.
     * 
* * .api.FunctionCall function_call = 5; */ @java.lang.Override public com.volcengine.model.maas.api.Api.FunctionCallOrBuilder getFunctionCallOrBuilder() { return getFunctionCall(); } public static final int REFERENCES_FIELD_NUMBER = 3; private java.util.List references_; /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ @java.lang.Override public java.util.List getReferencesList() { return references_; } /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ @java.lang.Override public java.util.List getReferencesOrBuilderList() { return references_; } /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ @java.lang.Override public int getReferencesCount() { return references_.size(); } /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.Reference getReferences(int index) { return references_.get(index); } /** *
     * url reference for searching, optional
     * 
* * repeated .api.Reference references = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ReferenceOrBuilder getReferencesOrBuilder( int index) { return references_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); } for (int i = 0; i < references_.size(); i++) { output.writeMessage(3, references_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (functionCall_ != null) { output.writeMessage(5, getFunctionCall()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); } for (int i = 0; i < references_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, references_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (functionCall_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getFunctionCall()); } 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.volcengine.model.maas.api.Api.Message)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Message other = (com.volcengine.model.maas.api.Api.Message) obj; if (!getRole() .equals(other.getRole())) return false; if (!getContent() .equals(other.getContent())) return false; if (!getName() .equals(other.getName())) return false; if (hasFunctionCall() != other.hasFunctionCall()) return false; if (hasFunctionCall()) { if (!getFunctionCall() .equals(other.getFunctionCall())) return false; } if (!getReferencesList() .equals(other.getReferencesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasFunctionCall()) { hash = (37 * hash) + FUNCTION_CALL_FIELD_NUMBER; hash = (53 * hash) + getFunctionCall().hashCode(); } if (getReferencesCount() > 0) { hash = (37 * hash) + REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getReferencesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Message parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Message parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Message parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Message 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.volcengine.model.maas.api.Api.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Message 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.volcengine.model.maas.api.Api.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Message 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.volcengine.model.maas.api.Api.Message 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; } /** * Protobuf type {@code api.Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Message) com.volcengine.model.maas.api.Api.MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Message.class, com.volcengine.model.maas.api.Api.Message.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Message.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); role_ = ""; content_ = ""; name_ = ""; if (functionCallBuilder_ == null) { functionCall_ = null; } else { functionCall_ = null; functionCallBuilder_ = null; } if (referencesBuilder_ == null) { references_ = java.util.Collections.emptyList(); } else { references_ = null; referencesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Message_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Message getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Message.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Message build() { com.volcengine.model.maas.api.Api.Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Message buildPartial() { com.volcengine.model.maas.api.Api.Message result = new com.volcengine.model.maas.api.Api.Message(this); int from_bitField0_ = bitField0_; result.role_ = role_; result.content_ = content_; result.name_ = name_; if (functionCallBuilder_ == null) { result.functionCall_ = functionCall_; } else { result.functionCall_ = functionCallBuilder_.build(); } if (referencesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { references_ = java.util.Collections.unmodifiableList(references_); bitField0_ = (bitField0_ & ~0x00000001); } result.references_ = references_; } else { result.references_ = referencesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.Message) { return mergeFrom((com.volcengine.model.maas.api.Api.Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Message other) { if (other == com.volcengine.model.maas.api.Api.Message.getDefaultInstance()) return this; if (!other.getRole().isEmpty()) { role_ = other.role_; onChanged(); } if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasFunctionCall()) { mergeFunctionCall(other.getFunctionCall()); } if (referencesBuilder_ == null) { if (!other.references_.isEmpty()) { if (references_.isEmpty()) { references_ = other.references_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureReferencesIsMutable(); references_.addAll(other.references_); } onChanged(); } } else { if (!other.references_.isEmpty()) { if (referencesBuilder_.isEmpty()) { referencesBuilder_.dispose(); referencesBuilder_ = null; references_ = other.references_; bitField0_ = (bitField0_ & ~0x00000001); referencesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReferencesFieldBuilder() : null; } else { referencesBuilder_.addAllMessages(other.references_); } } } 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: { role_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { content_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.volcengine.model.maas.api.Api.Reference m = input.readMessage( com.volcengine.model.maas.api.Api.Reference.parser(), extensionRegistry); if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.add(m); } else { referencesBuilder_.addMessage(m); } break; } // case 26 case 34: { name_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { input.readMessage( getFunctionCallFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object role_ = ""; /** *
       * The role of the author of this message. One of system, user, assistant or
       * function.
       * 
* * string role = 1; * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The role of the author of this message. One of system, user, assistant or
       * function.
       * 
* * string role = 1; * @return The bytes for role. */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The role of the author of this message. One of system, user, assistant or
       * function.
       * 
* * string role = 1; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; onChanged(); return this; } /** *
       * The role of the author of this message. One of system, user, assistant or
       * function.
       * 
* * string role = 1; * @return This builder for chaining. */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** *
       * The role of the author of this message. One of system, user, assistant or
       * function.
       * 
* * string role = 1; * @param value The bytes for role to set. * @return This builder for chaining. */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; onChanged(); return this; } private java.lang.Object content_ = ""; /** *
       * The real content of the message, may be empty for assistant message with
       * function call.
       * 
* * string content = 2; * @return The content. */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The real content of the message, may be empty for assistant message with
       * function call.
       * 
* * string content = 2; * @return The bytes for content. */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The real content of the message, may be empty for assistant message with
       * function call.
       * 
* * string content = 2; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** *
       * The real content of the message, may be empty for assistant message with
       * function call.
       * 
* * string content = 2; * @return This builder for chaining. */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** *
       * The real content of the message, may be empty for assistant message with
       * function call.
       * 
* * string content = 2; * @param value The bytes for content to set. * @return This builder for chaining. */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * If the role is `function`, is the name of the function which generate the
       * content.
       * 
* * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If the role is `function`, is the name of the function which generate the
       * content.
       * 
* * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If the role is `function`, is the name of the function which generate the
       * content.
       * 
* * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * If the role is `function`, is the name of the function which generate the
       * content.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * If the role is `function`, is the name of the function which generate the
       * content.
       * 
* * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.volcengine.model.maas.api.Api.FunctionCall functionCall_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.FunctionCall, com.volcengine.model.maas.api.Api.FunctionCall.Builder, com.volcengine.model.maas.api.Api.FunctionCallOrBuilder> functionCallBuilder_; /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; * @return Whether the functionCall field is set. */ public boolean hasFunctionCall() { return functionCallBuilder_ != null || functionCall_ != null; } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; * @return The functionCall. */ public com.volcengine.model.maas.api.Api.FunctionCall getFunctionCall() { if (functionCallBuilder_ == null) { return functionCall_ == null ? com.volcengine.model.maas.api.Api.FunctionCall.getDefaultInstance() : functionCall_; } else { return functionCallBuilder_.getMessage(); } } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ public Builder setFunctionCall(com.volcengine.model.maas.api.Api.FunctionCall value) { if (functionCallBuilder_ == null) { if (value == null) { throw new NullPointerException(); } functionCall_ = value; onChanged(); } else { functionCallBuilder_.setMessage(value); } return this; } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ public Builder setFunctionCall( com.volcengine.model.maas.api.Api.FunctionCall.Builder builderForValue) { if (functionCallBuilder_ == null) { functionCall_ = builderForValue.build(); onChanged(); } else { functionCallBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ public Builder mergeFunctionCall(com.volcengine.model.maas.api.Api.FunctionCall value) { if (functionCallBuilder_ == null) { if (functionCall_ != null) { functionCall_ = com.volcengine.model.maas.api.Api.FunctionCall.newBuilder(functionCall_).mergeFrom(value).buildPartial(); } else { functionCall_ = value; } onChanged(); } else { functionCallBuilder_.mergeFrom(value); } return this; } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ public Builder clearFunctionCall() { if (functionCallBuilder_ == null) { functionCall_ = null; onChanged(); } else { functionCall_ = null; functionCallBuilder_ = null; } return this; } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ public com.volcengine.model.maas.api.Api.FunctionCall.Builder getFunctionCallBuilder() { onChanged(); return getFunctionCallFieldBuilder().getBuilder(); } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ public com.volcengine.model.maas.api.Api.FunctionCallOrBuilder getFunctionCallOrBuilder() { if (functionCallBuilder_ != null) { return functionCallBuilder_.getMessageOrBuilder(); } else { return functionCall_ == null ? com.volcengine.model.maas.api.Api.FunctionCall.getDefaultInstance() : functionCall_; } } /** *
       * The name and arguments of a function call generated by model.
       * 
* * .api.FunctionCall function_call = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.FunctionCall, com.volcengine.model.maas.api.Api.FunctionCall.Builder, com.volcengine.model.maas.api.Api.FunctionCallOrBuilder> getFunctionCallFieldBuilder() { if (functionCallBuilder_ == null) { functionCallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.FunctionCall, com.volcengine.model.maas.api.Api.FunctionCall.Builder, com.volcengine.model.maas.api.Api.FunctionCallOrBuilder>( getFunctionCall(), getParentForChildren(), isClean()); functionCall_ = null; } return functionCallBuilder_; } private java.util.List references_ = java.util.Collections.emptyList(); private void ensureReferencesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { references_ = new java.util.ArrayList(references_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Reference, com.volcengine.model.maas.api.Api.Reference.Builder, com.volcengine.model.maas.api.Api.ReferenceOrBuilder> referencesBuilder_; /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public java.util.List getReferencesList() { if (referencesBuilder_ == null) { return java.util.Collections.unmodifiableList(references_); } else { return referencesBuilder_.getMessageList(); } } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public int getReferencesCount() { if (referencesBuilder_ == null) { return references_.size(); } else { return referencesBuilder_.getCount(); } } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public com.volcengine.model.maas.api.Api.Reference getReferences(int index) { if (referencesBuilder_ == null) { return references_.get(index); } else { return referencesBuilder_.getMessage(index); } } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder setReferences( int index, com.volcengine.model.maas.api.Api.Reference value) { if (referencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesIsMutable(); references_.set(index, value); onChanged(); } else { referencesBuilder_.setMessage(index, value); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder setReferences( int index, com.volcengine.model.maas.api.Api.Reference.Builder builderForValue) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.set(index, builderForValue.build()); onChanged(); } else { referencesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder addReferences(com.volcengine.model.maas.api.Api.Reference value) { if (referencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesIsMutable(); references_.add(value); onChanged(); } else { referencesBuilder_.addMessage(value); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder addReferences( int index, com.volcengine.model.maas.api.Api.Reference value) { if (referencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReferencesIsMutable(); references_.add(index, value); onChanged(); } else { referencesBuilder_.addMessage(index, value); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder addReferences( com.volcengine.model.maas.api.Api.Reference.Builder builderForValue) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.add(builderForValue.build()); onChanged(); } else { referencesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder addReferences( int index, com.volcengine.model.maas.api.Api.Reference.Builder builderForValue) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.add(index, builderForValue.build()); onChanged(); } else { referencesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder addAllReferences( java.lang.Iterable values) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, references_); onChanged(); } else { referencesBuilder_.addAllMessages(values); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder clearReferences() { if (referencesBuilder_ == null) { references_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { referencesBuilder_.clear(); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public Builder removeReferences(int index) { if (referencesBuilder_ == null) { ensureReferencesIsMutable(); references_.remove(index); onChanged(); } else { referencesBuilder_.remove(index); } return this; } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public com.volcengine.model.maas.api.Api.Reference.Builder getReferencesBuilder( int index) { return getReferencesFieldBuilder().getBuilder(index); } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public com.volcengine.model.maas.api.Api.ReferenceOrBuilder getReferencesOrBuilder( int index) { if (referencesBuilder_ == null) { return references_.get(index); } else { return referencesBuilder_.getMessageOrBuilder(index); } } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public java.util.List getReferencesOrBuilderList() { if (referencesBuilder_ != null) { return referencesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(references_); } } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public com.volcengine.model.maas.api.Api.Reference.Builder addReferencesBuilder() { return getReferencesFieldBuilder().addBuilder( com.volcengine.model.maas.api.Api.Reference.getDefaultInstance()); } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public com.volcengine.model.maas.api.Api.Reference.Builder addReferencesBuilder( int index) { return getReferencesFieldBuilder().addBuilder( index, com.volcengine.model.maas.api.Api.Reference.getDefaultInstance()); } /** *
       * url reference for searching, optional
       * 
* * repeated .api.Reference references = 3; */ public java.util.List getReferencesBuilderList() { return getReferencesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Reference, com.volcengine.model.maas.api.Api.Reference.Builder, com.volcengine.model.maas.api.Api.ReferenceOrBuilder> getReferencesFieldBuilder() { if (referencesBuilder_ == null) { referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Reference, com.volcengine.model.maas.api.Api.Reference.Builder, com.volcengine.model.maas.api.Api.ReferenceOrBuilder>( references_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); references_ = null; } return referencesBuilder_; } @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:api.Message) } // @@protoc_insertion_point(class_scope:api.Message) private static final com.volcengine.model.maas.api.Api.Message DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Message(); } public static com.volcengine.model.maas.api.Api.Message getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Message 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.volcengine.model.maas.api.Api.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Reference) com.google.protobuf.MessageOrBuilder { /** *
     * url
     * 
* * string url = 1; * @return The url. */ java.lang.String getUrl(); /** *
     * url
     * 
* * string url = 1; * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** *
     * the index of url
     * 
* * int32 idx = 2; * @return The idx. */ int getIdx(); /** *
     * the logo of url
     * 
* * string logo_url = 3; * @return The logoUrl. */ java.lang.String getLogoUrl(); /** *
     * the logo of url
     * 
* * string logo_url = 3; * @return The bytes for logoUrl. */ com.google.protobuf.ByteString getLogoUrlBytes(); /** *
     * the url be used for pc
     * 
* * string pc_url = 4; * @return The pcUrl. */ java.lang.String getPcUrl(); /** *
     * the url be used for pc
     * 
* * string pc_url = 4; * @return The bytes for pcUrl. */ com.google.protobuf.ByteString getPcUrlBytes(); /** *
     * the topic of url
     * 
* * string site_name = 5; * @return The siteName. */ java.lang.String getSiteName(); /** *
     * the topic of url
     * 
* * string site_name = 5; * @return The bytes for siteName. */ com.google.protobuf.ByteString getSiteNameBytes(); } /** * Protobuf type {@code api.Reference} */ public static final class Reference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Reference) ReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use Reference.newBuilder() to construct. private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Reference() { url_ = ""; logoUrl_ = ""; pcUrl_ = ""; siteName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Reference(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Reference.class, com.volcengine.model.maas.api.Api.Reference.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** *
     * url
     * 
* * string url = 1; * @return The url. */ @java.lang.Override public java.lang.String getUrl() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** *
     * url
     * 
* * string url = 1; * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IDX_FIELD_NUMBER = 2; private int idx_; /** *
     * the index of url
     * 
* * int32 idx = 2; * @return The idx. */ @java.lang.Override public int getIdx() { return idx_; } public static final int LOGO_URL_FIELD_NUMBER = 3; private volatile java.lang.Object logoUrl_; /** *
     * the logo of url
     * 
* * string logo_url = 3; * @return The logoUrl. */ @java.lang.Override public java.lang.String getLogoUrl() { java.lang.Object ref = logoUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logoUrl_ = s; return s; } } /** *
     * the logo of url
     * 
* * string logo_url = 3; * @return The bytes for logoUrl. */ @java.lang.Override public com.google.protobuf.ByteString getLogoUrlBytes() { java.lang.Object ref = logoUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logoUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PC_URL_FIELD_NUMBER = 4; private volatile java.lang.Object pcUrl_; /** *
     * the url be used for pc
     * 
* * string pc_url = 4; * @return The pcUrl. */ @java.lang.Override public java.lang.String getPcUrl() { java.lang.Object ref = pcUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pcUrl_ = s; return s; } } /** *
     * the url be used for pc
     * 
* * string pc_url = 4; * @return The bytes for pcUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPcUrlBytes() { java.lang.Object ref = pcUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pcUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SITE_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object siteName_; /** *
     * the topic of url
     * 
* * string site_name = 5; * @return The siteName. */ @java.lang.Override public java.lang.String getSiteName() { java.lang.Object ref = siteName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteName_ = s; return s; } } /** *
     * the topic of url
     * 
* * string site_name = 5; * @return The bytes for siteName. */ @java.lang.Override public com.google.protobuf.ByteString getSiteNameBytes() { java.lang.Object ref = siteName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); siteName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } if (idx_ != 0) { output.writeInt32(2, idx_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logoUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, logoUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pcUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pcUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, siteName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (idx_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, idx_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logoUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, logoUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pcUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pcUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, siteName_); } 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.volcengine.model.maas.api.Api.Reference)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Reference other = (com.volcengine.model.maas.api.Api.Reference) obj; if (!getUrl() .equals(other.getUrl())) return false; if (getIdx() != other.getIdx()) return false; if (!getLogoUrl() .equals(other.getLogoUrl())) return false; if (!getPcUrl() .equals(other.getPcUrl())) return false; if (!getSiteName() .equals(other.getSiteName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + IDX_FIELD_NUMBER; hash = (53 * hash) + getIdx(); hash = (37 * hash) + LOGO_URL_FIELD_NUMBER; hash = (53 * hash) + getLogoUrl().hashCode(); hash = (37 * hash) + PC_URL_FIELD_NUMBER; hash = (53 * hash) + getPcUrl().hashCode(); hash = (37 * hash) + SITE_NAME_FIELD_NUMBER; hash = (53 * hash) + getSiteName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Reference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Reference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Reference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Reference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Reference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Reference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Reference 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.volcengine.model.maas.api.Api.Reference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Reference 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.volcengine.model.maas.api.Api.Reference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Reference 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.volcengine.model.maas.api.Api.Reference 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; } /** * Protobuf type {@code api.Reference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Reference) com.volcengine.model.maas.api.Api.ReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Reference.class, com.volcengine.model.maas.api.Api.Reference.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Reference.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); url_ = ""; idx_ = 0; logoUrl_ = ""; pcUrl_ = ""; siteName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Reference_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Reference getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Reference.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Reference build() { com.volcengine.model.maas.api.Api.Reference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Reference buildPartial() { com.volcengine.model.maas.api.Api.Reference result = new com.volcengine.model.maas.api.Api.Reference(this); result.url_ = url_; result.idx_ = idx_; result.logoUrl_ = logoUrl_; result.pcUrl_ = pcUrl_; result.siteName_ = siteName_; 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 com.volcengine.model.maas.api.Api.Reference) { return mergeFrom((com.volcengine.model.maas.api.Api.Reference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Reference other) { if (other == com.volcengine.model.maas.api.Api.Reference.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } if (other.getIdx() != 0) { setIdx(other.getIdx()); } if (!other.getLogoUrl().isEmpty()) { logoUrl_ = other.logoUrl_; onChanged(); } if (!other.getPcUrl().isEmpty()) { pcUrl_ = other.pcUrl_; onChanged(); } if (!other.getSiteName().isEmpty()) { siteName_ = other.siteName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { url_ = input.readStringRequireUtf8(); break; } // case 10 case 16: { idx_ = input.readInt32(); break; } // case 16 case 26: { logoUrl_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { pcUrl_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { siteName_ = input.readStringRequireUtf8(); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object url_ = ""; /** *
       * url
       * 
* * string url = 1; * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * url
       * 
* * string url = 1; * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * url
       * 
* * string url = 1; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** *
       * url
       * 
* * string url = 1; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** *
       * url
       * 
* * string url = 1; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; onChanged(); return this; } private int idx_ ; /** *
       * the index of url
       * 
* * int32 idx = 2; * @return The idx. */ @java.lang.Override public int getIdx() { return idx_; } /** *
       * the index of url
       * 
* * int32 idx = 2; * @param value The idx to set. * @return This builder for chaining. */ public Builder setIdx(int value) { idx_ = value; onChanged(); return this; } /** *
       * the index of url
       * 
* * int32 idx = 2; * @return This builder for chaining. */ public Builder clearIdx() { idx_ = 0; onChanged(); return this; } private java.lang.Object logoUrl_ = ""; /** *
       * the logo of url
       * 
* * string logo_url = 3; * @return The logoUrl. */ public java.lang.String getLogoUrl() { java.lang.Object ref = logoUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logoUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * the logo of url
       * 
* * string logo_url = 3; * @return The bytes for logoUrl. */ public com.google.protobuf.ByteString getLogoUrlBytes() { java.lang.Object ref = logoUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logoUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * the logo of url
       * 
* * string logo_url = 3; * @param value The logoUrl to set. * @return This builder for chaining. */ public Builder setLogoUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logoUrl_ = value; onChanged(); return this; } /** *
       * the logo of url
       * 
* * string logo_url = 3; * @return This builder for chaining. */ public Builder clearLogoUrl() { logoUrl_ = getDefaultInstance().getLogoUrl(); onChanged(); return this; } /** *
       * the logo of url
       * 
* * string logo_url = 3; * @param value The bytes for logoUrl to set. * @return This builder for chaining. */ public Builder setLogoUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logoUrl_ = value; onChanged(); return this; } private java.lang.Object pcUrl_ = ""; /** *
       * the url be used for pc
       * 
* * string pc_url = 4; * @return The pcUrl. */ public java.lang.String getPcUrl() { java.lang.Object ref = pcUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pcUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * the url be used for pc
       * 
* * string pc_url = 4; * @return The bytes for pcUrl. */ public com.google.protobuf.ByteString getPcUrlBytes() { java.lang.Object ref = pcUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pcUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * the url be used for pc
       * 
* * string pc_url = 4; * @param value The pcUrl to set. * @return This builder for chaining. */ public Builder setPcUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pcUrl_ = value; onChanged(); return this; } /** *
       * the url be used for pc
       * 
* * string pc_url = 4; * @return This builder for chaining. */ public Builder clearPcUrl() { pcUrl_ = getDefaultInstance().getPcUrl(); onChanged(); return this; } /** *
       * the url be used for pc
       * 
* * string pc_url = 4; * @param value The bytes for pcUrl to set. * @return This builder for chaining. */ public Builder setPcUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pcUrl_ = value; onChanged(); return this; } private java.lang.Object siteName_ = ""; /** *
       * the topic of url
       * 
* * string site_name = 5; * @return The siteName. */ public java.lang.String getSiteName() { java.lang.Object ref = siteName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); siteName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * the topic of url
       * 
* * string site_name = 5; * @return The bytes for siteName. */ public com.google.protobuf.ByteString getSiteNameBytes() { java.lang.Object ref = siteName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); siteName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * the topic of url
       * 
* * string site_name = 5; * @param value The siteName to set. * @return This builder for chaining. */ public Builder setSiteName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } siteName_ = value; onChanged(); return this; } /** *
       * the topic of url
       * 
* * string site_name = 5; * @return This builder for chaining. */ public Builder clearSiteName() { siteName_ = getDefaultInstance().getSiteName(); onChanged(); return this; } /** *
       * the topic of url
       * 
* * string site_name = 5; * @param value The bytes for siteName to set. * @return This builder for chaining. */ public Builder setSiteNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); siteName_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Reference) } // @@protoc_insertion_point(class_scope:api.Reference) private static final com.volcengine.model.maas.api.Api.Reference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Reference(); } public static com.volcengine.model.maas.api.Api.Reference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Reference 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.volcengine.model.maas.api.Api.Reference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModelOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Model) com.google.protobuf.MessageOrBuilder { /** *
     * Unified model name in model db
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Unified model name in model db
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Use specific endpoint id for inference, if set, parameters `name` and
     * `version` will be ignored.
     * 
* * string endpoint_id = 2; * @return The endpointId. */ java.lang.String getEndpointId(); /** *
     * Use specific endpoint id for inference, if set, parameters `name` and
     * `version` will be ignored.
     * 
* * string endpoint_id = 2; * @return The bytes for endpointId. */ com.google.protobuf.ByteString getEndpointIdBytes(); /** *
     * Use specific model version for inference, optional.
     * 
* * string version = 3; * @return The version. */ java.lang.String getVersion(); /** *
     * Use specific model version for inference, optional.
     * 
* * string version = 3; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); } /** * Protobuf type {@code api.Model} */ public static final class Model extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Model) ModelOrBuilder { private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Model() { name_ = ""; endpointId_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Model(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Model.class, com.volcengine.model.maas.api.Api.Model.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Unified model name in model db
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Unified model name in model db
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENDPOINT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object endpointId_; /** *
     * Use specific endpoint id for inference, if set, parameters `name` and
     * `version` will be ignored.
     * 
* * string endpoint_id = 2; * @return The endpointId. */ @java.lang.Override public java.lang.String getEndpointId() { java.lang.Object ref = endpointId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpointId_ = s; return s; } } /** *
     * Use specific endpoint id for inference, if set, parameters `name` and
     * `version` will be ignored.
     * 
* * string endpoint_id = 2; * @return The bytes for endpointId. */ @java.lang.Override public com.google.protobuf.ByteString getEndpointIdBytes() { java.lang.Object ref = endpointId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpointId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** *
     * Use specific model version for inference, optional.
     * 
* * string version = 3; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** *
     * Use specific model version for inference, optional.
     * 
* * string version = 3; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpointId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpointId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } 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.volcengine.model.maas.api.Api.Model)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Model other = (com.volcengine.model.maas.api.Api.Model) obj; if (!getName() .equals(other.getName())) return false; if (!getEndpointId() .equals(other.getEndpointId())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; hash = (53 * hash) + getEndpointId().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Model parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Model parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Model parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Model parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Model parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Model parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Model parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Model 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.volcengine.model.maas.api.Api.Model parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Model 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.volcengine.model.maas.api.Api.Model parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Model 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.volcengine.model.maas.api.Api.Model 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; } /** * Protobuf type {@code api.Model} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Model) com.volcengine.model.maas.api.Api.ModelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Model.class, com.volcengine.model.maas.api.Api.Model.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Model.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; endpointId_ = ""; version_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Model_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Model getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Model.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Model build() { com.volcengine.model.maas.api.Api.Model result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Model buildPartial() { com.volcengine.model.maas.api.Api.Model result = new com.volcengine.model.maas.api.Api.Model(this); result.name_ = name_; result.endpointId_ = endpointId_; result.version_ = version_; 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 com.volcengine.model.maas.api.Api.Model) { return mergeFrom((com.volcengine.model.maas.api.Api.Model)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Model other) { if (other == com.volcengine.model.maas.api.Api.Model.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getEndpointId().isEmpty()) { endpointId_ = other.endpointId_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { endpointId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { version_ = input.readStringRequireUtf8(); break; } // case 26 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 java.lang.Object name_ = ""; /** *
       * Unified model name in model db
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unified model name in model db
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unified model name in model db
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Unified model name in model db
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Unified model name in model db
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object endpointId_ = ""; /** *
       * Use specific endpoint id for inference, if set, parameters `name` and
       * `version` will be ignored.
       * 
* * string endpoint_id = 2; * @return The endpointId. */ public java.lang.String getEndpointId() { java.lang.Object ref = endpointId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpointId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Use specific endpoint id for inference, if set, parameters `name` and
       * `version` will be ignored.
       * 
* * string endpoint_id = 2; * @return The bytes for endpointId. */ public com.google.protobuf.ByteString getEndpointIdBytes() { java.lang.Object ref = endpointId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpointId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Use specific endpoint id for inference, if set, parameters `name` and
       * `version` will be ignored.
       * 
* * string endpoint_id = 2; * @param value The endpointId to set. * @return This builder for chaining. */ public Builder setEndpointId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpointId_ = value; onChanged(); return this; } /** *
       * Use specific endpoint id for inference, if set, parameters `name` and
       * `version` will be ignored.
       * 
* * string endpoint_id = 2; * @return This builder for chaining. */ public Builder clearEndpointId() { endpointId_ = getDefaultInstance().getEndpointId(); onChanged(); return this; } /** *
       * Use specific endpoint id for inference, if set, parameters `name` and
       * `version` will be ignored.
       * 
* * string endpoint_id = 2; * @param value The bytes for endpointId to set. * @return This builder for chaining. */ public Builder setEndpointIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpointId_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * Use specific model version for inference, optional.
       * 
* * string version = 3; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Use specific model version for inference, optional.
       * 
* * string version = 3; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Use specific model version for inference, optional.
       * 
* * string version = 3; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * Use specific model version for inference, optional.
       * 
* * string version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * Use specific model version for inference, optional.
       * 
* * string version = 3; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Model) } // @@protoc_insertion_point(class_scope:api.Model) private static final com.volcengine.model.maas.api.Api.Model DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Model(); } public static com.volcengine.model.maas.api.Api.Model getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Model 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.volcengine.model.maas.api.Api.Model getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Error) com.google.protobuf.MessageOrBuilder { /** * string code = 1; * @return The code. */ java.lang.String getCode(); /** * string code = 1; * @return The bytes for code. */ com.google.protobuf.ByteString getCodeBytes(); /** * int32 code_n = 2; * @return The codeN. */ int getCodeN(); /** * string message = 3; * @return The message. */ java.lang.String getMessage(); /** * string message = 3; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code api.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { code_ = ""; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Error.class, com.volcengine.model.maas.api.Api.Error.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** * string code = 1; * @return The code. */ @java.lang.Override public java.lang.String getCode() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** * string code = 1; * @return The bytes for code. */ @java.lang.Override public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CODE_N_FIELD_NUMBER = 2; private int codeN_; /** * int32 code_n = 2; * @return The codeN. */ @java.lang.Override public int getCodeN() { return codeN_; } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** * string message = 3; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * string message = 3; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); } if (codeN_ != 0) { output.writeInt32(2, codeN_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); } if (codeN_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, codeN_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } 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.volcengine.model.maas.api.Api.Error)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Error other = (com.volcengine.model.maas.api.Api.Error) obj; if (!getCode() .equals(other.getCode())) return false; if (getCodeN() != other.getCodeN()) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); hash = (37 * hash) + CODE_N_FIELD_NUMBER; hash = (53 * hash) + getCodeN(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Error 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.volcengine.model.maas.api.Api.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Error 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.volcengine.model.maas.api.Api.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Error 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.volcengine.model.maas.api.Api.Error 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; } /** * Protobuf type {@code api.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Error) com.volcengine.model.maas.api.Api.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Error.class, com.volcengine.model.maas.api.Api.Error.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Error.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); code_ = ""; codeN_ = 0; message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Error_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Error getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Error.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Error build() { com.volcengine.model.maas.api.Api.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Error buildPartial() { com.volcengine.model.maas.api.Api.Error result = new com.volcengine.model.maas.api.Api.Error(this); result.code_ = code_; result.codeN_ = codeN_; result.message_ = message_; 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 com.volcengine.model.maas.api.Api.Error) { return mergeFrom((com.volcengine.model.maas.api.Api.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Error other) { if (other == com.volcengine.model.maas.api.Api.Error.getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); } if (other.getCodeN() != 0) { setCodeN(other.getCodeN()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { code_ = input.readStringRequireUtf8(); break; } // case 10 case 16: { codeN_ = input.readInt32(); break; } // case 16 case 26: { message_ = input.readStringRequireUtf8(); break; } // case 26 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 java.lang.Object code_ = ""; /** * string code = 1; * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } else { return (java.lang.String) ref; } } /** * string code = 1; * @return The bytes for code. */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string code = 1; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } code_ = value; onChanged(); return this; } /** * string code = 1; * @return This builder for chaining. */ public Builder clearCode() { code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** * string code = 1; * @param value The bytes for code to set. * @return This builder for chaining. */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; onChanged(); return this; } private int codeN_ ; /** * int32 code_n = 2; * @return The codeN. */ @java.lang.Override public int getCodeN() { return codeN_; } /** * int32 code_n = 2; * @param value The codeN to set. * @return This builder for chaining. */ public Builder setCodeN(int value) { codeN_ = value; onChanged(); return this; } /** * int32 code_n = 2; * @return This builder for chaining. */ public Builder clearCodeN() { codeN_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 3; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 3; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 3; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 3; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 3; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Error) } // @@protoc_insertion_point(class_scope:api.Error) private static final com.volcengine.model.maas.api.Api.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Error(); } public static com.volcengine.model.maas.api.Api.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Error 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.volcengine.model.maas.api.Api.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ErrorResp) com.google.protobuf.MessageOrBuilder { /** * .api.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** * .api.Error error = 1; * @return The error. */ com.volcengine.model.maas.api.Api.Error getError(); /** * .api.Error error = 1; */ com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder(); /** * string req_id = 2; * @return The reqId. */ java.lang.String getReqId(); /** * string req_id = 2; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); } /** * Protobuf type {@code api.ErrorResp} */ public static final class ErrorResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ErrorResp) ErrorRespOrBuilder { private static final long serialVersionUID = 0L; // Use ErrorResp.newBuilder() to construct. private ErrorResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ErrorResp() { reqId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ErrorResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ErrorResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ErrorResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ErrorResp.class, com.volcengine.model.maas.api.Api.ErrorResp.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private com.volcengine.model.maas.api.Api.Error error_; /** * .api.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return error_ != null; } /** * .api.Error error = 1; * @return The error. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Error getError() { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } /** * .api.Error error = 1; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int REQ_ID_FIELD_NUMBER = 2; private volatile java.lang.Object reqId_; /** * string req_id = 2; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** * string req_id = 2; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (error_ != null) { output.writeMessage(1, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reqId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reqId_); } 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.volcengine.model.maas.api.Api.ErrorResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.ErrorResp other = (com.volcengine.model.maas.api.Api.ErrorResp) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError() .equals(other.getError())) return false; } if (!getReqId() .equals(other.getReqId())) 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ErrorResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ErrorResp 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.volcengine.model.maas.api.Api.ErrorResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ErrorResp 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.volcengine.model.maas.api.Api.ErrorResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ErrorResp 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.volcengine.model.maas.api.Api.ErrorResp 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; } /** * Protobuf type {@code api.ErrorResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ErrorResp) com.volcengine.model.maas.api.Api.ErrorRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ErrorResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ErrorResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ErrorResp.class, com.volcengine.model.maas.api.Api.ErrorResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.ErrorResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } reqId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_ErrorResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.ErrorResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorResp build() { com.volcengine.model.maas.api.Api.ErrorResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorResp buildPartial() { com.volcengine.model.maas.api.Api.ErrorResp result = new com.volcengine.model.maas.api.Api.ErrorResp(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.reqId_ = reqId_; 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 com.volcengine.model.maas.api.Api.ErrorResp) { return mergeFrom((com.volcengine.model.maas.api.Api.ErrorResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.ErrorResp other) { if (other == com.volcengine.model.maas.api.Api.ErrorResp.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getErrorFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { reqId_ = input.readStringRequireUtf8(); 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 com.volcengine.model.maas.api.Api.Error error_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> errorBuilder_; /** * .api.Error error = 1; * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .api.Error error = 1; * @return The error. */ public com.volcengine.model.maas.api.Api.Error getError() { if (errorBuilder_ == null) { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .api.Error error = 1; */ public Builder setError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .api.Error error = 1; */ public Builder setError( com.volcengine.model.maas.api.Api.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Error error = 1; */ public Builder mergeError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = com.volcengine.model.maas.api.Api.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .api.Error error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .api.Error error = 1; */ public com.volcengine.model.maas.api.Api.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .api.Error error = 1; */ public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } } /** * .api.Error error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private java.lang.Object reqId_ = ""; /** * string req_id = 2; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string req_id = 2; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string req_id = 2; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** * string req_id = 2; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** * string req_id = 2; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.ErrorResp) } // @@protoc_insertion_point(class_scope:api.ErrorResp) private static final com.volcengine.model.maas.api.Api.ErrorResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.ErrorResp(); } public static com.volcengine.model.maas.api.Api.ErrorResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ErrorResp 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.volcengine.model.maas.api.Api.ErrorResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChoiceOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Choice) com.google.protobuf.MessageOrBuilder { /** * int32 index = 1; * @return The index. */ int getIndex(); /** * .api.Message message = 2; * @return Whether the message field is set. */ boolean hasMessage(); /** * .api.Message message = 2; * @return The message. */ com.volcengine.model.maas.api.Api.Message getMessage(); /** * .api.Message message = 2; */ com.volcengine.model.maas.api.Api.MessageOrBuilder getMessageOrBuilder(); /** * string finish_reason = 3; * @return The finishReason. */ java.lang.String getFinishReason(); /** * string finish_reason = 3; * @return The bytes for finishReason. */ com.google.protobuf.ByteString getFinishReasonBytes(); /** * .api.Logprobs logprobs = 4; * @return Whether the logprobs field is set. */ boolean hasLogprobs(); /** * .api.Logprobs logprobs = 4; * @return The logprobs. */ com.volcengine.model.maas.api.Api.Logprobs getLogprobs(); /** * .api.Logprobs logprobs = 4; */ com.volcengine.model.maas.api.Api.LogprobsOrBuilder getLogprobsOrBuilder(); } /** * Protobuf type {@code api.Choice} */ public static final class Choice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Choice) ChoiceOrBuilder { private static final long serialVersionUID = 0L; // Use Choice.newBuilder() to construct. private Choice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Choice() { finishReason_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Choice(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Choice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Choice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Choice.class, com.volcengine.model.maas.api.Api.Choice.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private int index_; /** * int32 index = 1; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } public static final int MESSAGE_FIELD_NUMBER = 2; private com.volcengine.model.maas.api.Api.Message message_; /** * .api.Message message = 2; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return message_ != null; } /** * .api.Message message = 2; * @return The message. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Message getMessage() { return message_ == null ? com.volcengine.model.maas.api.Api.Message.getDefaultInstance() : message_; } /** * .api.Message message = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.MessageOrBuilder getMessageOrBuilder() { return getMessage(); } public static final int FINISH_REASON_FIELD_NUMBER = 3; private volatile java.lang.Object finishReason_; /** * string finish_reason = 3; * @return The finishReason. */ @java.lang.Override public java.lang.String getFinishReason() { java.lang.Object ref = finishReason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finishReason_ = s; return s; } } /** * string finish_reason = 3; * @return The bytes for finishReason. */ @java.lang.Override public com.google.protobuf.ByteString getFinishReasonBytes() { java.lang.Object ref = finishReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finishReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOGPROBS_FIELD_NUMBER = 4; private com.volcengine.model.maas.api.Api.Logprobs logprobs_; /** * .api.Logprobs logprobs = 4; * @return Whether the logprobs field is set. */ @java.lang.Override public boolean hasLogprobs() { return logprobs_ != null; } /** * .api.Logprobs logprobs = 4; * @return The logprobs. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Logprobs getLogprobs() { return logprobs_ == null ? com.volcengine.model.maas.api.Api.Logprobs.getDefaultInstance() : logprobs_; } /** * .api.Logprobs logprobs = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.LogprobsOrBuilder getLogprobsOrBuilder() { return getLogprobs(); } 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_ != 0) { output.writeInt32(1, index_); } if (message_ != null) { output.writeMessage(2, getMessage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, finishReason_); } if (logprobs_ != null) { output.writeMessage(4, getLogprobs()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, index_); } if (message_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMessage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, finishReason_); } if (logprobs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLogprobs()); } 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.volcengine.model.maas.api.Api.Choice)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Choice other = (com.volcengine.model.maas.api.Api.Choice) obj; if (getIndex() != other.getIndex()) return false; if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) return false; } if (!getFinishReason() .equals(other.getFinishReason())) return false; if (hasLogprobs() != other.hasLogprobs()) return false; if (hasLogprobs()) { if (!getLogprobs() .equals(other.getLogprobs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (37 * hash) + FINISH_REASON_FIELD_NUMBER; hash = (53 * hash) + getFinishReason().hashCode(); if (hasLogprobs()) { hash = (37 * hash) + LOGPROBS_FIELD_NUMBER; hash = (53 * hash) + getLogprobs().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Choice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Choice parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Choice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Choice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Choice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Choice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Choice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Choice 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.volcengine.model.maas.api.Api.Choice parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Choice 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.volcengine.model.maas.api.Api.Choice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Choice 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.volcengine.model.maas.api.Api.Choice 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; } /** * Protobuf type {@code api.Choice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Choice) com.volcengine.model.maas.api.Api.ChoiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Choice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Choice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Choice.class, com.volcengine.model.maas.api.Api.Choice.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Choice.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); index_ = 0; if (messageBuilder_ == null) { message_ = null; } else { message_ = null; messageBuilder_ = null; } finishReason_ = ""; if (logprobsBuilder_ == null) { logprobs_ = null; } else { logprobs_ = null; logprobsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Choice_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Choice getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Choice.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Choice build() { com.volcengine.model.maas.api.Api.Choice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Choice buildPartial() { com.volcengine.model.maas.api.Api.Choice result = new com.volcengine.model.maas.api.Api.Choice(this); result.index_ = index_; if (messageBuilder_ == null) { result.message_ = message_; } else { result.message_ = messageBuilder_.build(); } result.finishReason_ = finishReason_; if (logprobsBuilder_ == null) { result.logprobs_ = logprobs_; } else { result.logprobs_ = logprobsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.Choice) { return mergeFrom((com.volcengine.model.maas.api.Api.Choice)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Choice other) { if (other == com.volcengine.model.maas.api.Api.Choice.getDefaultInstance()) return this; if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (other.hasMessage()) { mergeMessage(other.getMessage()); } if (!other.getFinishReason().isEmpty()) { finishReason_ = other.finishReason_; onChanged(); } if (other.hasLogprobs()) { mergeLogprobs(other.getLogprobs()); } 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 8: { index_ = input.readInt32(); break; } // case 8 case 18: { input.readMessage( getMessageFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { finishReason_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { input.readMessage( getLogprobsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int index_ ; /** * int32 index = 1; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } /** * int32 index = 1; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { index_ = value; onChanged(); return this; } /** * int32 index = 1; * @return This builder for chaining. */ public Builder clearIndex() { index_ = 0; onChanged(); return this; } private com.volcengine.model.maas.api.Api.Message message_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Message, com.volcengine.model.maas.api.Api.Message.Builder, com.volcengine.model.maas.api.Api.MessageOrBuilder> messageBuilder_; /** * .api.Message message = 2; * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** * .api.Message message = 2; * @return The message. */ public com.volcengine.model.maas.api.Api.Message getMessage() { if (messageBuilder_ == null) { return message_ == null ? com.volcengine.model.maas.api.Api.Message.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** * .api.Message message = 2; */ public Builder setMessage(com.volcengine.model.maas.api.Api.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { messageBuilder_.setMessage(value); } return this; } /** * .api.Message message = 2; */ public Builder setMessage( com.volcengine.model.maas.api.Api.Message.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Message message = 2; */ public Builder mergeMessage(com.volcengine.model.maas.api.Api.Message value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = com.volcengine.model.maas.api.Api.Message.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { messageBuilder_.mergeFrom(value); } return this; } /** * .api.Message message = 2; */ public Builder clearMessage() { if (messageBuilder_ == null) { message_ = null; onChanged(); } else { message_ = null; messageBuilder_ = null; } return this; } /** * .api.Message message = 2; */ public com.volcengine.model.maas.api.Api.Message.Builder getMessageBuilder() { onChanged(); return getMessageFieldBuilder().getBuilder(); } /** * .api.Message message = 2; */ public com.volcengine.model.maas.api.Api.MessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { return message_ == null ? com.volcengine.model.maas.api.Api.Message.getDefaultInstance() : message_; } } /** * .api.Message message = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Message, com.volcengine.model.maas.api.Api.Message.Builder, com.volcengine.model.maas.api.Api.MessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Message, com.volcengine.model.maas.api.Api.Message.Builder, com.volcengine.model.maas.api.Api.MessageOrBuilder>( getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } private java.lang.Object finishReason_ = ""; /** * string finish_reason = 3; * @return The finishReason. */ public java.lang.String getFinishReason() { java.lang.Object ref = finishReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finishReason_ = s; return s; } else { return (java.lang.String) ref; } } /** * string finish_reason = 3; * @return The bytes for finishReason. */ public com.google.protobuf.ByteString getFinishReasonBytes() { java.lang.Object ref = finishReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finishReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string finish_reason = 3; * @param value The finishReason to set. * @return This builder for chaining. */ public Builder setFinishReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } finishReason_ = value; onChanged(); return this; } /** * string finish_reason = 3; * @return This builder for chaining. */ public Builder clearFinishReason() { finishReason_ = getDefaultInstance().getFinishReason(); onChanged(); return this; } /** * string finish_reason = 3; * @param value The bytes for finishReason to set. * @return This builder for chaining. */ public Builder setFinishReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); finishReason_ = value; onChanged(); return this; } private com.volcengine.model.maas.api.Api.Logprobs logprobs_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Logprobs, com.volcengine.model.maas.api.Api.Logprobs.Builder, com.volcengine.model.maas.api.Api.LogprobsOrBuilder> logprobsBuilder_; /** * .api.Logprobs logprobs = 4; * @return Whether the logprobs field is set. */ public boolean hasLogprobs() { return logprobsBuilder_ != null || logprobs_ != null; } /** * .api.Logprobs logprobs = 4; * @return The logprobs. */ public com.volcengine.model.maas.api.Api.Logprobs getLogprobs() { if (logprobsBuilder_ == null) { return logprobs_ == null ? com.volcengine.model.maas.api.Api.Logprobs.getDefaultInstance() : logprobs_; } else { return logprobsBuilder_.getMessage(); } } /** * .api.Logprobs logprobs = 4; */ public Builder setLogprobs(com.volcengine.model.maas.api.Api.Logprobs value) { if (logprobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } logprobs_ = value; onChanged(); } else { logprobsBuilder_.setMessage(value); } return this; } /** * .api.Logprobs logprobs = 4; */ public Builder setLogprobs( com.volcengine.model.maas.api.Api.Logprobs.Builder builderForValue) { if (logprobsBuilder_ == null) { logprobs_ = builderForValue.build(); onChanged(); } else { logprobsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Logprobs logprobs = 4; */ public Builder mergeLogprobs(com.volcengine.model.maas.api.Api.Logprobs value) { if (logprobsBuilder_ == null) { if (logprobs_ != null) { logprobs_ = com.volcengine.model.maas.api.Api.Logprobs.newBuilder(logprobs_).mergeFrom(value).buildPartial(); } else { logprobs_ = value; } onChanged(); } else { logprobsBuilder_.mergeFrom(value); } return this; } /** * .api.Logprobs logprobs = 4; */ public Builder clearLogprobs() { if (logprobsBuilder_ == null) { logprobs_ = null; onChanged(); } else { logprobs_ = null; logprobsBuilder_ = null; } return this; } /** * .api.Logprobs logprobs = 4; */ public com.volcengine.model.maas.api.Api.Logprobs.Builder getLogprobsBuilder() { onChanged(); return getLogprobsFieldBuilder().getBuilder(); } /** * .api.Logprobs logprobs = 4; */ public com.volcengine.model.maas.api.Api.LogprobsOrBuilder getLogprobsOrBuilder() { if (logprobsBuilder_ != null) { return logprobsBuilder_.getMessageOrBuilder(); } else { return logprobs_ == null ? com.volcengine.model.maas.api.Api.Logprobs.getDefaultInstance() : logprobs_; } } /** * .api.Logprobs logprobs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Logprobs, com.volcengine.model.maas.api.Api.Logprobs.Builder, com.volcengine.model.maas.api.Api.LogprobsOrBuilder> getLogprobsFieldBuilder() { if (logprobsBuilder_ == null) { logprobsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Logprobs, com.volcengine.model.maas.api.Api.Logprobs.Builder, com.volcengine.model.maas.api.Api.LogprobsOrBuilder>( getLogprobs(), getParentForChildren(), isClean()); logprobs_ = null; } return logprobsBuilder_; } @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:api.Choice) } // @@protoc_insertion_point(class_scope:api.Choice) private static final com.volcengine.model.maas.api.Api.Choice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Choice(); } public static com.volcengine.model.maas.api.Api.Choice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Choice 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.volcengine.model.maas.api.Api.Choice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Parameters) com.google.protobuf.MessageOrBuilder { /** *
     * Exponential scaling output probability distribution
     * 
* * optional float temperature = 1; * @return Whether the temperature field is set. */ boolean hasTemperature(); /** *
     * Exponential scaling output probability distribution
     * 
* * optional float temperature = 1; * @return The temperature. */ float getTemperature(); /** *
     * The maximum number of tokens to generate in the char completion.
     * 
* * optional int64 max_tokens = 2; * @return Whether the maxTokens field is set. */ boolean hasMaxTokens(); /** *
     * The maximum number of tokens to generate in the char completion.
     * 
* * optional int64 max_tokens = 2; * @return The maxTokens. */ long getMaxTokens(); /** *
     * An alternative to sampling with temperature, called nucleus sampling,
     * where the model considers the results of the tokens with top_p probability
     * mass
     * 
* * optional float top_p = 3; * @return Whether the topP field is set. */ boolean hasTopP(); /** *
     * An alternative to sampling with temperature, called nucleus sampling,
     * where the model considers the results of the tokens with top_p probability
     * mass
     * 
* * optional float top_p = 3; * @return The topP. */ float getTopP(); /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based
     * on whether they appear in the text so far, increasing the model's
     * likelihood to talk about new topics.
     * 
* * optional float presence_penalty = 4; * @return Whether the presencePenalty field is set. */ boolean hasPresencePenalty(); /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based
     * on whether they appear in the text so far, increasing the model's
     * likelihood to talk about new topics.
     * 
* * optional float presence_penalty = 4; * @return The presencePenalty. */ float getPresencePenalty(); /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based on
     * their existing frequency in the text so far, decreasing the model's
     * likelihood to repeat the same line verbatim.
     * 
* * optional float frequency_penalty = 5; * @return Whether the frequencyPenalty field is set. */ boolean hasFrequencyPenalty(); /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based on
     * their existing frequency in the text so far, decreasing the model's
     * likelihood to repeat the same line verbatim.
     * 
* * optional float frequency_penalty = 5; * @return The frequencyPenalty. */ float getFrequencyPenalty(); /** *
     * The maximum number of tokens to generate, ignoring the number of tokens in
     * the prompt
     * 
* * optional int64 max_new_tokens = 6; * @return Whether the maxNewTokens field is set. */ boolean hasMaxNewTokens(); /** *
     * The maximum number of tokens to generate, ignoring the number of tokens in
     * the prompt
     * 
* * optional int64 max_new_tokens = 6; * @return The maxNewTokens. */ long getMaxNewTokens(); /** *
     * The parameter for repetition penalty, from [1.0, 2.0]
     * 
* * optional float repetition_penalty = 7; * @return Whether the repetitionPenalty field is set. */ boolean hasRepetitionPenalty(); /** *
     * The parameter for repetition penalty, from [1.0, 2.0]
     * 
* * optional float repetition_penalty = 7; * @return The repetitionPenalty. */ float getRepetitionPenalty(); /** *
     * Whether or not to use sampling, use greedy decoding otherwise. Default to
     * false
     * 
* * optional bool do_sample = 8; * @return Whether the doSample field is set. */ boolean hasDoSample(); /** *
     * Whether or not to use sampling, use greedy decoding otherwise. Default to
     * false
     * 
* * optional bool do_sample = 8; * @return The doSample. */ boolean getDoSample(); /** *
     * The number of highest probability vocabulary tokens to keep for
     * top-k-filtering.
     * 
* * optional int64 top_k = 9; * @return Whether the topK field is set. */ boolean hasTopK(); /** *
     * The number of highest probability vocabulary tokens to keep for
     * top-k-filtering.
     * 
* * optional int64 top_k = 9; * @return The topK. */ long getTopK(); /** *
     * the minimum number of tokens to generate
     * 
* * optional int64 min_new_tokens = 10; * @return Whether the minNewTokens field is set. */ boolean hasMinNewTokens(); /** *
     * the minimum number of tokens to generate
     * 
* * optional int64 min_new_tokens = 10; * @return The minNewTokens. */ long getMinNewTokens(); /** *
     * the maximum number of prompt tokens, if prompt tokens length over this
     * limit, it will be truncated as prompt[-max_prompt_tokens:]
     * 
* * optional int64 max_prompt_tokens = 11; * @return Whether the maxPromptTokens field is set. */ boolean hasMaxPromptTokens(); /** *
     * the maximum number of prompt tokens, if prompt tokens length over this
     * limit, it will be truncated as prompt[-max_prompt_tokens:]
     * 
* * optional int64 max_prompt_tokens = 11; * @return The maxPromptTokens. */ long getMaxPromptTokens(); /** * optional int64 logprobs = 12; * @return Whether the logprobs field is set. */ boolean hasLogprobs(); /** * optional int64 logprobs = 12; * @return The logprobs. */ long getLogprobs(); /** * repeated string stop = 13; * @return A list containing the stop. */ java.util.List getStopList(); /** * repeated string stop = 13; * @return The count of stop. */ int getStopCount(); /** * repeated string stop = 13; * @param index The index of the element to return. * @return The stop at the given index. */ java.lang.String getStop(int index); /** * repeated string stop = 13; * @param index The index of the value to return. * @return The bytes of the stop at the given index. */ com.google.protobuf.ByteString getStopBytes(int index); } /** * Protobuf type {@code api.Parameters} */ public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Parameters) ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use Parameters.newBuilder() to construct. private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Parameters() { stop_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Parameters(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Parameters.class, com.volcengine.model.maas.api.Api.Parameters.Builder.class); } private int bitField0_; public static final int TEMPERATURE_FIELD_NUMBER = 1; private float temperature_; /** *
     * Exponential scaling output probability distribution
     * 
* * optional float temperature = 1; * @return Whether the temperature field is set. */ @java.lang.Override public boolean hasTemperature() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Exponential scaling output probability distribution
     * 
* * optional float temperature = 1; * @return The temperature. */ @java.lang.Override public float getTemperature() { return temperature_; } public static final int MAX_TOKENS_FIELD_NUMBER = 2; private long maxTokens_; /** *
     * The maximum number of tokens to generate in the char completion.
     * 
* * optional int64 max_tokens = 2; * @return Whether the maxTokens field is set. */ @java.lang.Override public boolean hasMaxTokens() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The maximum number of tokens to generate in the char completion.
     * 
* * optional int64 max_tokens = 2; * @return The maxTokens. */ @java.lang.Override public long getMaxTokens() { return maxTokens_; } public static final int TOP_P_FIELD_NUMBER = 3; private float topP_; /** *
     * An alternative to sampling with temperature, called nucleus sampling,
     * where the model considers the results of the tokens with top_p probability
     * mass
     * 
* * optional float top_p = 3; * @return Whether the topP field is set. */ @java.lang.Override public boolean hasTopP() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * An alternative to sampling with temperature, called nucleus sampling,
     * where the model considers the results of the tokens with top_p probability
     * mass
     * 
* * optional float top_p = 3; * @return The topP. */ @java.lang.Override public float getTopP() { return topP_; } public static final int PRESENCE_PENALTY_FIELD_NUMBER = 4; private float presencePenalty_; /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based
     * on whether they appear in the text so far, increasing the model's
     * likelihood to talk about new topics.
     * 
* * optional float presence_penalty = 4; * @return Whether the presencePenalty field is set. */ @java.lang.Override public boolean hasPresencePenalty() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based
     * on whether they appear in the text so far, increasing the model's
     * likelihood to talk about new topics.
     * 
* * optional float presence_penalty = 4; * @return The presencePenalty. */ @java.lang.Override public float getPresencePenalty() { return presencePenalty_; } public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 5; private float frequencyPenalty_; /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based on
     * their existing frequency in the text so far, decreasing the model's
     * likelihood to repeat the same line verbatim.
     * 
* * optional float frequency_penalty = 5; * @return Whether the frequencyPenalty field is set. */ @java.lang.Override public boolean hasFrequencyPenalty() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Number between -2.0 and 2.0. Positive values penalize new tokens based on
     * their existing frequency in the text so far, decreasing the model's
     * likelihood to repeat the same line verbatim.
     * 
* * optional float frequency_penalty = 5; * @return The frequencyPenalty. */ @java.lang.Override public float getFrequencyPenalty() { return frequencyPenalty_; } public static final int MAX_NEW_TOKENS_FIELD_NUMBER = 6; private long maxNewTokens_; /** *
     * The maximum number of tokens to generate, ignoring the number of tokens in
     * the prompt
     * 
* * optional int64 max_new_tokens = 6; * @return Whether the maxNewTokens field is set. */ @java.lang.Override public boolean hasMaxNewTokens() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * The maximum number of tokens to generate, ignoring the number of tokens in
     * the prompt
     * 
* * optional int64 max_new_tokens = 6; * @return The maxNewTokens. */ @java.lang.Override public long getMaxNewTokens() { return maxNewTokens_; } public static final int REPETITION_PENALTY_FIELD_NUMBER = 7; private float repetitionPenalty_; /** *
     * The parameter for repetition penalty, from [1.0, 2.0]
     * 
* * optional float repetition_penalty = 7; * @return Whether the repetitionPenalty field is set. */ @java.lang.Override public boolean hasRepetitionPenalty() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * The parameter for repetition penalty, from [1.0, 2.0]
     * 
* * optional float repetition_penalty = 7; * @return The repetitionPenalty. */ @java.lang.Override public float getRepetitionPenalty() { return repetitionPenalty_; } public static final int DO_SAMPLE_FIELD_NUMBER = 8; private boolean doSample_; /** *
     * Whether or not to use sampling, use greedy decoding otherwise. Default to
     * false
     * 
* * optional bool do_sample = 8; * @return Whether the doSample field is set. */ @java.lang.Override public boolean hasDoSample() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Whether or not to use sampling, use greedy decoding otherwise. Default to
     * false
     * 
* * optional bool do_sample = 8; * @return The doSample. */ @java.lang.Override public boolean getDoSample() { return doSample_; } public static final int TOP_K_FIELD_NUMBER = 9; private long topK_; /** *
     * The number of highest probability vocabulary tokens to keep for
     * top-k-filtering.
     * 
* * optional int64 top_k = 9; * @return Whether the topK field is set. */ @java.lang.Override public boolean hasTopK() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * The number of highest probability vocabulary tokens to keep for
     * top-k-filtering.
     * 
* * optional int64 top_k = 9; * @return The topK. */ @java.lang.Override public long getTopK() { return topK_; } public static final int MIN_NEW_TOKENS_FIELD_NUMBER = 10; private long minNewTokens_; /** *
     * the minimum number of tokens to generate
     * 
* * optional int64 min_new_tokens = 10; * @return Whether the minNewTokens field is set. */ @java.lang.Override public boolean hasMinNewTokens() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * the minimum number of tokens to generate
     * 
* * optional int64 min_new_tokens = 10; * @return The minNewTokens. */ @java.lang.Override public long getMinNewTokens() { return minNewTokens_; } public static final int MAX_PROMPT_TOKENS_FIELD_NUMBER = 11; private long maxPromptTokens_; /** *
     * the maximum number of prompt tokens, if prompt tokens length over this
     * limit, it will be truncated as prompt[-max_prompt_tokens:]
     * 
* * optional int64 max_prompt_tokens = 11; * @return Whether the maxPromptTokens field is set. */ @java.lang.Override public boolean hasMaxPromptTokens() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * the maximum number of prompt tokens, if prompt tokens length over this
     * limit, it will be truncated as prompt[-max_prompt_tokens:]
     * 
* * optional int64 max_prompt_tokens = 11; * @return The maxPromptTokens. */ @java.lang.Override public long getMaxPromptTokens() { return maxPromptTokens_; } public static final int LOGPROBS_FIELD_NUMBER = 12; private long logprobs_; /** * optional int64 logprobs = 12; * @return Whether the logprobs field is set. */ @java.lang.Override public boolean hasLogprobs() { return ((bitField0_ & 0x00000800) != 0); } /** * optional int64 logprobs = 12; * @return The logprobs. */ @java.lang.Override public long getLogprobs() { return logprobs_; } public static final int STOP_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList stop_; /** * repeated string stop = 13; * @return A list containing the stop. */ public com.google.protobuf.ProtocolStringList getStopList() { return stop_; } /** * repeated string stop = 13; * @return The count of stop. */ public int getStopCount() { return stop_.size(); } /** * repeated string stop = 13; * @param index The index of the element to return. * @return The stop at the given index. */ public java.lang.String getStop(int index) { return stop_.get(index); } /** * repeated string stop = 13; * @param index The index of the value to return. * @return The bytes of the stop at the given index. */ public com.google.protobuf.ByteString getStopBytes(int index) { return stop_.getByteString(index); } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, temperature_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, maxTokens_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeFloat(3, topP_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(4, presencePenalty_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(5, frequencyPenalty_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(6, maxNewTokens_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFloat(7, repetitionPenalty_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, doSample_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt64(9, topK_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(10, minNewTokens_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeInt64(11, maxPromptTokens_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeInt64(12, logprobs_); } for (int i = 0; i < stop_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, stop_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(1, temperature_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxTokens_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, topP_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, presencePenalty_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, frequencyPenalty_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, maxNewTokens_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, repetitionPenalty_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, doSample_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, topK_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, minNewTokens_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, maxPromptTokens_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, logprobs_); } { int dataSize = 0; for (int i = 0; i < stop_.size(); i++) { dataSize += computeStringSizeNoTag(stop_.getRaw(i)); } size += dataSize; size += 1 * getStopList().size(); } 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.volcengine.model.maas.api.Api.Parameters)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Parameters other = (com.volcengine.model.maas.api.Api.Parameters) obj; if (hasTemperature() != other.hasTemperature()) return false; if (hasTemperature()) { if (java.lang.Float.floatToIntBits(getTemperature()) != java.lang.Float.floatToIntBits( other.getTemperature())) return false; } if (hasMaxTokens() != other.hasMaxTokens()) return false; if (hasMaxTokens()) { if (getMaxTokens() != other.getMaxTokens()) return false; } if (hasTopP() != other.hasTopP()) return false; if (hasTopP()) { if (java.lang.Float.floatToIntBits(getTopP()) != java.lang.Float.floatToIntBits( other.getTopP())) return false; } if (hasPresencePenalty() != other.hasPresencePenalty()) return false; if (hasPresencePenalty()) { if (java.lang.Float.floatToIntBits(getPresencePenalty()) != java.lang.Float.floatToIntBits( other.getPresencePenalty())) return false; } if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false; if (hasFrequencyPenalty()) { if (java.lang.Float.floatToIntBits(getFrequencyPenalty()) != java.lang.Float.floatToIntBits( other.getFrequencyPenalty())) return false; } if (hasMaxNewTokens() != other.hasMaxNewTokens()) return false; if (hasMaxNewTokens()) { if (getMaxNewTokens() != other.getMaxNewTokens()) return false; } if (hasRepetitionPenalty() != other.hasRepetitionPenalty()) return false; if (hasRepetitionPenalty()) { if (java.lang.Float.floatToIntBits(getRepetitionPenalty()) != java.lang.Float.floatToIntBits( other.getRepetitionPenalty())) return false; } if (hasDoSample() != other.hasDoSample()) return false; if (hasDoSample()) { if (getDoSample() != other.getDoSample()) return false; } if (hasTopK() != other.hasTopK()) return false; if (hasTopK()) { if (getTopK() != other.getTopK()) return false; } if (hasMinNewTokens() != other.hasMinNewTokens()) return false; if (hasMinNewTokens()) { if (getMinNewTokens() != other.getMinNewTokens()) return false; } if (hasMaxPromptTokens() != other.hasMaxPromptTokens()) return false; if (hasMaxPromptTokens()) { if (getMaxPromptTokens() != other.getMaxPromptTokens()) return false; } if (hasLogprobs() != other.hasLogprobs()) return false; if (hasLogprobs()) { if (getLogprobs() != other.getLogprobs()) return false; } if (!getStopList() .equals(other.getStopList())) 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 (hasTemperature()) { hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getTemperature()); } if (hasMaxTokens()) { hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxTokens()); } if (hasTopP()) { hash = (37 * hash) + TOP_P_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getTopP()); } if (hasPresencePenalty()) { hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getPresencePenalty()); } if (hasFrequencyPenalty()) { hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFrequencyPenalty()); } if (hasMaxNewTokens()) { hash = (37 * hash) + MAX_NEW_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxNewTokens()); } if (hasRepetitionPenalty()) { hash = (37 * hash) + REPETITION_PENALTY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRepetitionPenalty()); } if (hasDoSample()) { hash = (37 * hash) + DO_SAMPLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDoSample()); } if (hasTopK()) { hash = (37 * hash) + TOP_K_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTopK()); } if (hasMinNewTokens()) { hash = (37 * hash) + MIN_NEW_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinNewTokens()); } if (hasMaxPromptTokens()) { hash = (37 * hash) + MAX_PROMPT_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxPromptTokens()); } if (hasLogprobs()) { hash = (37 * hash) + LOGPROBS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLogprobs()); } if (getStopCount() > 0) { hash = (37 * hash) + STOP_FIELD_NUMBER; hash = (53 * hash) + getStopList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Parameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Parameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Parameters 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.volcengine.model.maas.api.Api.Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Parameters 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.volcengine.model.maas.api.Api.Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Parameters 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.volcengine.model.maas.api.Api.Parameters 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; } /** * Protobuf type {@code api.Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Parameters) com.volcengine.model.maas.api.Api.ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Parameters.class, com.volcengine.model.maas.api.Api.Parameters.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Parameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); temperature_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); maxTokens_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); topP_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); presencePenalty_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); frequencyPenalty_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); maxNewTokens_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); repetitionPenalty_ = 0F; bitField0_ = (bitField0_ & ~0x00000040); doSample_ = false; bitField0_ = (bitField0_ & ~0x00000080); topK_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); minNewTokens_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); maxPromptTokens_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); logprobs_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); stop_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Parameters_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Parameters getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Parameters.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Parameters build() { com.volcengine.model.maas.api.Api.Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Parameters buildPartial() { com.volcengine.model.maas.api.Api.Parameters result = new com.volcengine.model.maas.api.Api.Parameters(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.temperature_ = temperature_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxTokens_ = maxTokens_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.topP_ = topP_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.presencePenalty_ = presencePenalty_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.frequencyPenalty_ = frequencyPenalty_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.maxNewTokens_ = maxNewTokens_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.repetitionPenalty_ = repetitionPenalty_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.doSample_ = doSample_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.topK_ = topK_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.minNewTokens_ = minNewTokens_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.maxPromptTokens_ = maxPromptTokens_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.logprobs_ = logprobs_; to_bitField0_ |= 0x00000800; } if (((bitField0_ & 0x00001000) != 0)) { stop_ = stop_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00001000); } result.stop_ = stop_; result.bitField0_ = to_bitField0_; 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 com.volcengine.model.maas.api.Api.Parameters) { return mergeFrom((com.volcengine.model.maas.api.Api.Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Parameters other) { if (other == com.volcengine.model.maas.api.Api.Parameters.getDefaultInstance()) return this; if (other.hasTemperature()) { setTemperature(other.getTemperature()); } if (other.hasMaxTokens()) { setMaxTokens(other.getMaxTokens()); } if (other.hasTopP()) { setTopP(other.getTopP()); } if (other.hasPresencePenalty()) { setPresencePenalty(other.getPresencePenalty()); } if (other.hasFrequencyPenalty()) { setFrequencyPenalty(other.getFrequencyPenalty()); } if (other.hasMaxNewTokens()) { setMaxNewTokens(other.getMaxNewTokens()); } if (other.hasRepetitionPenalty()) { setRepetitionPenalty(other.getRepetitionPenalty()); } if (other.hasDoSample()) { setDoSample(other.getDoSample()); } if (other.hasTopK()) { setTopK(other.getTopK()); } if (other.hasMinNewTokens()) { setMinNewTokens(other.getMinNewTokens()); } if (other.hasMaxPromptTokens()) { setMaxPromptTokens(other.getMaxPromptTokens()); } if (other.hasLogprobs()) { setLogprobs(other.getLogprobs()); } if (!other.stop_.isEmpty()) { if (stop_.isEmpty()) { stop_ = other.stop_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureStopIsMutable(); stop_.addAll(other.stop_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { temperature_ = input.readFloat(); bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxTokens_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 29: { topP_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 37: { presencePenalty_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 case 45: { frequencyPenalty_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 48: { maxNewTokens_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 61: { repetitionPenalty_ = input.readFloat(); bitField0_ |= 0x00000040; break; } // case 61 case 64: { doSample_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { topK_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { minNewTokens_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { maxPromptTokens_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { logprobs_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 96 case 106: { java.lang.String s = input.readStringRequireUtf8(); ensureStopIsMutable(); stop_.add(s); break; } // case 106 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 float temperature_ ; /** *
       * Exponential scaling output probability distribution
       * 
* * optional float temperature = 1; * @return Whether the temperature field is set. */ @java.lang.Override public boolean hasTemperature() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Exponential scaling output probability distribution
       * 
* * optional float temperature = 1; * @return The temperature. */ @java.lang.Override public float getTemperature() { return temperature_; } /** *
       * Exponential scaling output probability distribution
       * 
* * optional float temperature = 1; * @param value The temperature to set. * @return This builder for chaining. */ public Builder setTemperature(float value) { bitField0_ |= 0x00000001; temperature_ = value; onChanged(); return this; } /** *
       * Exponential scaling output probability distribution
       * 
* * optional float temperature = 1; * @return This builder for chaining. */ public Builder clearTemperature() { bitField0_ = (bitField0_ & ~0x00000001); temperature_ = 0F; onChanged(); return this; } private long maxTokens_ ; /** *
       * The maximum number of tokens to generate in the char completion.
       * 
* * optional int64 max_tokens = 2; * @return Whether the maxTokens field is set. */ @java.lang.Override public boolean hasMaxTokens() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The maximum number of tokens to generate in the char completion.
       * 
* * optional int64 max_tokens = 2; * @return The maxTokens. */ @java.lang.Override public long getMaxTokens() { return maxTokens_; } /** *
       * The maximum number of tokens to generate in the char completion.
       * 
* * optional int64 max_tokens = 2; * @param value The maxTokens to set. * @return This builder for chaining. */ public Builder setMaxTokens(long value) { bitField0_ |= 0x00000002; maxTokens_ = value; onChanged(); return this; } /** *
       * The maximum number of tokens to generate in the char completion.
       * 
* * optional int64 max_tokens = 2; * @return This builder for chaining. */ public Builder clearMaxTokens() { bitField0_ = (bitField0_ & ~0x00000002); maxTokens_ = 0L; onChanged(); return this; } private float topP_ ; /** *
       * An alternative to sampling with temperature, called nucleus sampling,
       * where the model considers the results of the tokens with top_p probability
       * mass
       * 
* * optional float top_p = 3; * @return Whether the topP field is set. */ @java.lang.Override public boolean hasTopP() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * An alternative to sampling with temperature, called nucleus sampling,
       * where the model considers the results of the tokens with top_p probability
       * mass
       * 
* * optional float top_p = 3; * @return The topP. */ @java.lang.Override public float getTopP() { return topP_; } /** *
       * An alternative to sampling with temperature, called nucleus sampling,
       * where the model considers the results of the tokens with top_p probability
       * mass
       * 
* * optional float top_p = 3; * @param value The topP to set. * @return This builder for chaining. */ public Builder setTopP(float value) { bitField0_ |= 0x00000004; topP_ = value; onChanged(); return this; } /** *
       * An alternative to sampling with temperature, called nucleus sampling,
       * where the model considers the results of the tokens with top_p probability
       * mass
       * 
* * optional float top_p = 3; * @return This builder for chaining. */ public Builder clearTopP() { bitField0_ = (bitField0_ & ~0x00000004); topP_ = 0F; onChanged(); return this; } private float presencePenalty_ ; /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based
       * on whether they appear in the text so far, increasing the model's
       * likelihood to talk about new topics.
       * 
* * optional float presence_penalty = 4; * @return Whether the presencePenalty field is set. */ @java.lang.Override public boolean hasPresencePenalty() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based
       * on whether they appear in the text so far, increasing the model's
       * likelihood to talk about new topics.
       * 
* * optional float presence_penalty = 4; * @return The presencePenalty. */ @java.lang.Override public float getPresencePenalty() { return presencePenalty_; } /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based
       * on whether they appear in the text so far, increasing the model's
       * likelihood to talk about new topics.
       * 
* * optional float presence_penalty = 4; * @param value The presencePenalty to set. * @return This builder for chaining. */ public Builder setPresencePenalty(float value) { bitField0_ |= 0x00000008; presencePenalty_ = value; onChanged(); return this; } /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based
       * on whether they appear in the text so far, increasing the model's
       * likelihood to talk about new topics.
       * 
* * optional float presence_penalty = 4; * @return This builder for chaining. */ public Builder clearPresencePenalty() { bitField0_ = (bitField0_ & ~0x00000008); presencePenalty_ = 0F; onChanged(); return this; } private float frequencyPenalty_ ; /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based on
       * their existing frequency in the text so far, decreasing the model's
       * likelihood to repeat the same line verbatim.
       * 
* * optional float frequency_penalty = 5; * @return Whether the frequencyPenalty field is set. */ @java.lang.Override public boolean hasFrequencyPenalty() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based on
       * their existing frequency in the text so far, decreasing the model's
       * likelihood to repeat the same line verbatim.
       * 
* * optional float frequency_penalty = 5; * @return The frequencyPenalty. */ @java.lang.Override public float getFrequencyPenalty() { return frequencyPenalty_; } /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based on
       * their existing frequency in the text so far, decreasing the model's
       * likelihood to repeat the same line verbatim.
       * 
* * optional float frequency_penalty = 5; * @param value The frequencyPenalty to set. * @return This builder for chaining. */ public Builder setFrequencyPenalty(float value) { bitField0_ |= 0x00000010; frequencyPenalty_ = value; onChanged(); return this; } /** *
       * Number between -2.0 and 2.0. Positive values penalize new tokens based on
       * their existing frequency in the text so far, decreasing the model's
       * likelihood to repeat the same line verbatim.
       * 
* * optional float frequency_penalty = 5; * @return This builder for chaining. */ public Builder clearFrequencyPenalty() { bitField0_ = (bitField0_ & ~0x00000010); frequencyPenalty_ = 0F; onChanged(); return this; } private long maxNewTokens_ ; /** *
       * The maximum number of tokens to generate, ignoring the number of tokens in
       * the prompt
       * 
* * optional int64 max_new_tokens = 6; * @return Whether the maxNewTokens field is set. */ @java.lang.Override public boolean hasMaxNewTokens() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * The maximum number of tokens to generate, ignoring the number of tokens in
       * the prompt
       * 
* * optional int64 max_new_tokens = 6; * @return The maxNewTokens. */ @java.lang.Override public long getMaxNewTokens() { return maxNewTokens_; } /** *
       * The maximum number of tokens to generate, ignoring the number of tokens in
       * the prompt
       * 
* * optional int64 max_new_tokens = 6; * @param value The maxNewTokens to set. * @return This builder for chaining. */ public Builder setMaxNewTokens(long value) { bitField0_ |= 0x00000020; maxNewTokens_ = value; onChanged(); return this; } /** *
       * The maximum number of tokens to generate, ignoring the number of tokens in
       * the prompt
       * 
* * optional int64 max_new_tokens = 6; * @return This builder for chaining. */ public Builder clearMaxNewTokens() { bitField0_ = (bitField0_ & ~0x00000020); maxNewTokens_ = 0L; onChanged(); return this; } private float repetitionPenalty_ ; /** *
       * The parameter for repetition penalty, from [1.0, 2.0]
       * 
* * optional float repetition_penalty = 7; * @return Whether the repetitionPenalty field is set. */ @java.lang.Override public boolean hasRepetitionPenalty() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * The parameter for repetition penalty, from [1.0, 2.0]
       * 
* * optional float repetition_penalty = 7; * @return The repetitionPenalty. */ @java.lang.Override public float getRepetitionPenalty() { return repetitionPenalty_; } /** *
       * The parameter for repetition penalty, from [1.0, 2.0]
       * 
* * optional float repetition_penalty = 7; * @param value The repetitionPenalty to set. * @return This builder for chaining. */ public Builder setRepetitionPenalty(float value) { bitField0_ |= 0x00000040; repetitionPenalty_ = value; onChanged(); return this; } /** *
       * The parameter for repetition penalty, from [1.0, 2.0]
       * 
* * optional float repetition_penalty = 7; * @return This builder for chaining. */ public Builder clearRepetitionPenalty() { bitField0_ = (bitField0_ & ~0x00000040); repetitionPenalty_ = 0F; onChanged(); return this; } private boolean doSample_ ; /** *
       * Whether or not to use sampling, use greedy decoding otherwise. Default to
       * false
       * 
* * optional bool do_sample = 8; * @return Whether the doSample field is set. */ @java.lang.Override public boolean hasDoSample() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Whether or not to use sampling, use greedy decoding otherwise. Default to
       * false
       * 
* * optional bool do_sample = 8; * @return The doSample. */ @java.lang.Override public boolean getDoSample() { return doSample_; } /** *
       * Whether or not to use sampling, use greedy decoding otherwise. Default to
       * false
       * 
* * optional bool do_sample = 8; * @param value The doSample to set. * @return This builder for chaining. */ public Builder setDoSample(boolean value) { bitField0_ |= 0x00000080; doSample_ = value; onChanged(); return this; } /** *
       * Whether or not to use sampling, use greedy decoding otherwise. Default to
       * false
       * 
* * optional bool do_sample = 8; * @return This builder for chaining. */ public Builder clearDoSample() { bitField0_ = (bitField0_ & ~0x00000080); doSample_ = false; onChanged(); return this; } private long topK_ ; /** *
       * The number of highest probability vocabulary tokens to keep for
       * top-k-filtering.
       * 
* * optional int64 top_k = 9; * @return Whether the topK field is set. */ @java.lang.Override public boolean hasTopK() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * The number of highest probability vocabulary tokens to keep for
       * top-k-filtering.
       * 
* * optional int64 top_k = 9; * @return The topK. */ @java.lang.Override public long getTopK() { return topK_; } /** *
       * The number of highest probability vocabulary tokens to keep for
       * top-k-filtering.
       * 
* * optional int64 top_k = 9; * @param value The topK to set. * @return This builder for chaining. */ public Builder setTopK(long value) { bitField0_ |= 0x00000100; topK_ = value; onChanged(); return this; } /** *
       * The number of highest probability vocabulary tokens to keep for
       * top-k-filtering.
       * 
* * optional int64 top_k = 9; * @return This builder for chaining. */ public Builder clearTopK() { bitField0_ = (bitField0_ & ~0x00000100); topK_ = 0L; onChanged(); return this; } private long minNewTokens_ ; /** *
       * the minimum number of tokens to generate
       * 
* * optional int64 min_new_tokens = 10; * @return Whether the minNewTokens field is set. */ @java.lang.Override public boolean hasMinNewTokens() { return ((bitField0_ & 0x00000200) != 0); } /** *
       * the minimum number of tokens to generate
       * 
* * optional int64 min_new_tokens = 10; * @return The minNewTokens. */ @java.lang.Override public long getMinNewTokens() { return minNewTokens_; } /** *
       * the minimum number of tokens to generate
       * 
* * optional int64 min_new_tokens = 10; * @param value The minNewTokens to set. * @return This builder for chaining. */ public Builder setMinNewTokens(long value) { bitField0_ |= 0x00000200; minNewTokens_ = value; onChanged(); return this; } /** *
       * the minimum number of tokens to generate
       * 
* * optional int64 min_new_tokens = 10; * @return This builder for chaining. */ public Builder clearMinNewTokens() { bitField0_ = (bitField0_ & ~0x00000200); minNewTokens_ = 0L; onChanged(); return this; } private long maxPromptTokens_ ; /** *
       * the maximum number of prompt tokens, if prompt tokens length over this
       * limit, it will be truncated as prompt[-max_prompt_tokens:]
       * 
* * optional int64 max_prompt_tokens = 11; * @return Whether the maxPromptTokens field is set. */ @java.lang.Override public boolean hasMaxPromptTokens() { return ((bitField0_ & 0x00000400) != 0); } /** *
       * the maximum number of prompt tokens, if prompt tokens length over this
       * limit, it will be truncated as prompt[-max_prompt_tokens:]
       * 
* * optional int64 max_prompt_tokens = 11; * @return The maxPromptTokens. */ @java.lang.Override public long getMaxPromptTokens() { return maxPromptTokens_; } /** *
       * the maximum number of prompt tokens, if prompt tokens length over this
       * limit, it will be truncated as prompt[-max_prompt_tokens:]
       * 
* * optional int64 max_prompt_tokens = 11; * @param value The maxPromptTokens to set. * @return This builder for chaining. */ public Builder setMaxPromptTokens(long value) { bitField0_ |= 0x00000400; maxPromptTokens_ = value; onChanged(); return this; } /** *
       * the maximum number of prompt tokens, if prompt tokens length over this
       * limit, it will be truncated as prompt[-max_prompt_tokens:]
       * 
* * optional int64 max_prompt_tokens = 11; * @return This builder for chaining. */ public Builder clearMaxPromptTokens() { bitField0_ = (bitField0_ & ~0x00000400); maxPromptTokens_ = 0L; onChanged(); return this; } private long logprobs_ ; /** * optional int64 logprobs = 12; * @return Whether the logprobs field is set. */ @java.lang.Override public boolean hasLogprobs() { return ((bitField0_ & 0x00000800) != 0); } /** * optional int64 logprobs = 12; * @return The logprobs. */ @java.lang.Override public long getLogprobs() { return logprobs_; } /** * optional int64 logprobs = 12; * @param value The logprobs to set. * @return This builder for chaining. */ public Builder setLogprobs(long value) { bitField0_ |= 0x00000800; logprobs_ = value; onChanged(); return this; } /** * optional int64 logprobs = 12; * @return This builder for chaining. */ public Builder clearLogprobs() { bitField0_ = (bitField0_ & ~0x00000800); logprobs_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList stop_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStopIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { stop_ = new com.google.protobuf.LazyStringArrayList(stop_); bitField0_ |= 0x00001000; } } /** * repeated string stop = 13; * @return A list containing the stop. */ public com.google.protobuf.ProtocolStringList getStopList() { return stop_.getUnmodifiableView(); } /** * repeated string stop = 13; * @return The count of stop. */ public int getStopCount() { return stop_.size(); } /** * repeated string stop = 13; * @param index The index of the element to return. * @return The stop at the given index. */ public java.lang.String getStop(int index) { return stop_.get(index); } /** * repeated string stop = 13; * @param index The index of the value to return. * @return The bytes of the stop at the given index. */ public com.google.protobuf.ByteString getStopBytes(int index) { return stop_.getByteString(index); } /** * repeated string stop = 13; * @param index The index to set the value at. * @param value The stop to set. * @return This builder for chaining. */ public Builder setStop( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStopIsMutable(); stop_.set(index, value); onChanged(); return this; } /** * repeated string stop = 13; * @param value The stop to add. * @return This builder for chaining. */ public Builder addStop( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStopIsMutable(); stop_.add(value); onChanged(); return this; } /** * repeated string stop = 13; * @param values The stop to add. * @return This builder for chaining. */ public Builder addAllStop( java.lang.Iterable values) { ensureStopIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stop_); onChanged(); return this; } /** * repeated string stop = 13; * @return This builder for chaining. */ public Builder clearStop() { stop_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * repeated string stop = 13; * @param value The bytes of the stop to add. * @return This builder for chaining. */ public Builder addStopBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStopIsMutable(); stop_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Parameters) } // @@protoc_insertion_point(class_scope:api.Parameters) private static final com.volcengine.model.maas.api.Api.Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Parameters(); } public static com.volcengine.model.maas.api.Api.Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Parameters 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.volcengine.model.maas.api.Api.Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UsageOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Usage) com.google.protobuf.MessageOrBuilder { /** *
     * The number of prompt tokens
     * 
* * int64 prompt_tokens = 1; * @return The promptTokens. */ long getPromptTokens(); /** *
     * The number of generated tokens
     * 
* * int64 completion_tokens = 2; * @return The completionTokens. */ long getCompletionTokens(); /** *
     * The number of all: prompt_tokens + completion_tokens
     * 
* * int64 total_tokens = 3; * @return The totalTokens. */ long getTotalTokens(); } /** * Protobuf type {@code api.Usage} */ public static final class Usage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Usage) UsageOrBuilder { private static final long serialVersionUID = 0L; // Use Usage.newBuilder() to construct. private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Usage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Usage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Usage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Usage.class, com.volcengine.model.maas.api.Api.Usage.Builder.class); } public static final int PROMPT_TOKENS_FIELD_NUMBER = 1; private long promptTokens_; /** *
     * The number of prompt tokens
     * 
* * int64 prompt_tokens = 1; * @return The promptTokens. */ @java.lang.Override public long getPromptTokens() { return promptTokens_; } public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2; private long completionTokens_; /** *
     * The number of generated tokens
     * 
* * int64 completion_tokens = 2; * @return The completionTokens. */ @java.lang.Override public long getCompletionTokens() { return completionTokens_; } public static final int TOTAL_TOKENS_FIELD_NUMBER = 3; private long totalTokens_; /** *
     * The number of all: prompt_tokens + completion_tokens
     * 
* * int64 total_tokens = 3; * @return The totalTokens. */ @java.lang.Override public long getTotalTokens() { return totalTokens_; } 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 (promptTokens_ != 0L) { output.writeInt64(1, promptTokens_); } if (completionTokens_ != 0L) { output.writeInt64(2, completionTokens_); } if (totalTokens_ != 0L) { output.writeInt64(3, totalTokens_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (promptTokens_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, promptTokens_); } if (completionTokens_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, completionTokens_); } if (totalTokens_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, totalTokens_); } 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.volcengine.model.maas.api.Api.Usage)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Usage other = (com.volcengine.model.maas.api.Api.Usage) obj; if (getPromptTokens() != other.getPromptTokens()) return false; if (getCompletionTokens() != other.getCompletionTokens()) return false; if (getTotalTokens() != other.getTotalTokens()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPromptTokens()); hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompletionTokens()); hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalTokens()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Usage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Usage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Usage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Usage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Usage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Usage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Usage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Usage 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.volcengine.model.maas.api.Api.Usage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Usage 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.volcengine.model.maas.api.Api.Usage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Usage 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.volcengine.model.maas.api.Api.Usage 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; } /** * Protobuf type {@code api.Usage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Usage) com.volcengine.model.maas.api.Api.UsageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Usage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Usage.class, com.volcengine.model.maas.api.Api.Usage.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Usage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); promptTokens_ = 0L; completionTokens_ = 0L; totalTokens_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Usage_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Usage getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Usage.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Usage build() { com.volcengine.model.maas.api.Api.Usage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Usage buildPartial() { com.volcengine.model.maas.api.Api.Usage result = new com.volcengine.model.maas.api.Api.Usage(this); result.promptTokens_ = promptTokens_; result.completionTokens_ = completionTokens_; result.totalTokens_ = totalTokens_; 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 com.volcengine.model.maas.api.Api.Usage) { return mergeFrom((com.volcengine.model.maas.api.Api.Usage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Usage other) { if (other == com.volcengine.model.maas.api.Api.Usage.getDefaultInstance()) return this; if (other.getPromptTokens() != 0L) { setPromptTokens(other.getPromptTokens()); } if (other.getCompletionTokens() != 0L) { setCompletionTokens(other.getCompletionTokens()); } if (other.getTotalTokens() != 0L) { setTotalTokens(other.getTotalTokens()); } 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 8: { promptTokens_ = input.readInt64(); break; } // case 8 case 16: { completionTokens_ = input.readInt64(); break; } // case 16 case 24: { totalTokens_ = input.readInt64(); break; } // case 24 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 long promptTokens_ ; /** *
       * The number of prompt tokens
       * 
* * int64 prompt_tokens = 1; * @return The promptTokens. */ @java.lang.Override public long getPromptTokens() { return promptTokens_; } /** *
       * The number of prompt tokens
       * 
* * int64 prompt_tokens = 1; * @param value The promptTokens to set. * @return This builder for chaining. */ public Builder setPromptTokens(long value) { promptTokens_ = value; onChanged(); return this; } /** *
       * The number of prompt tokens
       * 
* * int64 prompt_tokens = 1; * @return This builder for chaining. */ public Builder clearPromptTokens() { promptTokens_ = 0L; onChanged(); return this; } private long completionTokens_ ; /** *
       * The number of generated tokens
       * 
* * int64 completion_tokens = 2; * @return The completionTokens. */ @java.lang.Override public long getCompletionTokens() { return completionTokens_; } /** *
       * The number of generated tokens
       * 
* * int64 completion_tokens = 2; * @param value The completionTokens to set. * @return This builder for chaining. */ public Builder setCompletionTokens(long value) { completionTokens_ = value; onChanged(); return this; } /** *
       * The number of generated tokens
       * 
* * int64 completion_tokens = 2; * @return This builder for chaining. */ public Builder clearCompletionTokens() { completionTokens_ = 0L; onChanged(); return this; } private long totalTokens_ ; /** *
       * The number of all: prompt_tokens + completion_tokens
       * 
* * int64 total_tokens = 3; * @return The totalTokens. */ @java.lang.Override public long getTotalTokens() { return totalTokens_; } /** *
       * The number of all: prompt_tokens + completion_tokens
       * 
* * int64 total_tokens = 3; * @param value The totalTokens to set. * @return This builder for chaining. */ public Builder setTotalTokens(long value) { totalTokens_ = value; onChanged(); return this; } /** *
       * The number of all: prompt_tokens + completion_tokens
       * 
* * int64 total_tokens = 3; * @return This builder for chaining. */ public Builder clearTotalTokens() { totalTokens_ = 0L; 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:api.Usage) } // @@protoc_insertion_point(class_scope:api.Usage) private static final com.volcengine.model.maas.api.Api.Usage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Usage(); } public static com.volcengine.model.maas.api.Api.Usage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Usage 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.volcengine.model.maas.api.Api.Usage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Function) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the function.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name of the function.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * A description of the function, used by the model to choose when and how to
     * call the function.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * A description of the function, used by the model to choose when and how to
     * call the function.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * The parameters of the function, described as Json Schema.
     * 
* * .google.protobuf.Struct parameters = 3; * @return Whether the parameters field is set. */ boolean hasParameters(); /** *
     * The parameters of the function, described as Json Schema.
     * 
* * .google.protobuf.Struct parameters = 3; * @return The parameters. */ com.google.protobuf.Struct getParameters(); /** *
     * The parameters of the function, described as Json Schema.
     * 
* * .google.protobuf.Struct parameters = 3; */ com.google.protobuf.StructOrBuilder getParametersOrBuilder(); /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @return A list containing the examples. */ java.util.List getExamplesList(); /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @return The count of examples. */ int getExamplesCount(); /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @param index The index of the element to return. * @return The examples at the given index. */ java.lang.String getExamples(int index); /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @param index The index of the value to return. * @return The bytes of the examples at the given index. */ com.google.protobuf.ByteString getExamplesBytes(int index); } /** * Protobuf type {@code api.Function} */ public static final class Function extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Function) FunctionOrBuilder { private static final long serialVersionUID = 0L; // Use Function.newBuilder() to construct. private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Function() { name_ = ""; description_ = ""; examples_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Function(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Function_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Function_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Function.class, com.volcengine.model.maas.api.Api.Function.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * The name of the function.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * The name of the function.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * A description of the function, used by the model to choose when and how to
     * call the function.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * A description of the function, used by the model to choose when and how to
     * call the function.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETERS_FIELD_NUMBER = 3; private com.google.protobuf.Struct parameters_; /** *
     * The parameters of the function, described as Json Schema.
     * 
* * .google.protobuf.Struct parameters = 3; * @return Whether the parameters field is set. */ @java.lang.Override public boolean hasParameters() { return parameters_ != null; } /** *
     * The parameters of the function, described as Json Schema.
     * 
* * .google.protobuf.Struct parameters = 3; * @return The parameters. */ @java.lang.Override public com.google.protobuf.Struct getParameters() { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } /** *
     * The parameters of the function, described as Json Schema.
     * 
* * .google.protobuf.Struct parameters = 3; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return getParameters(); } public static final int EXAMPLES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList examples_; /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @return A list containing the examples. */ public com.google.protobuf.ProtocolStringList getExamplesList() { return examples_; } /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @return The count of examples. */ public int getExamplesCount() { return examples_.size(); } /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @param index The index of the element to return. * @return The examples at the given index. */ public java.lang.String getExamples(int index) { return examples_.get(index); } /** *
     * The examples of the function parameters, as the above json schema
     * describes.
     * 
* * repeated string examples = 4; * @param index The index of the value to return. * @return The bytes of the examples at the given index. */ public com.google.protobuf.ByteString getExamplesBytes(int index) { return examples_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (parameters_ != null) { output.writeMessage(3, getParameters()); } for (int i = 0; i < examples_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, examples_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getParameters()); } { int dataSize = 0; for (int i = 0; i < examples_.size(); i++) { dataSize += computeStringSizeNoTag(examples_.getRaw(i)); } size += dataSize; size += 1 * getExamplesList().size(); } 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.volcengine.model.maas.api.Api.Function)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Function other = (com.volcengine.model.maas.api.Api.Function) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { if (!getParameters() .equals(other.getParameters())) return false; } if (!getExamplesList() .equals(other.getExamplesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasParameters()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); } if (getExamplesCount() > 0) { hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + getExamplesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Function parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Function parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Function parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Function parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Function parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Function 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.volcengine.model.maas.api.Api.Function parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Function 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.volcengine.model.maas.api.Api.Function parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Function 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.volcengine.model.maas.api.Api.Function 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; } /** * Protobuf type {@code api.Function} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Function) com.volcengine.model.maas.api.Api.FunctionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Function_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Function_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Function.class, com.volcengine.model.maas.api.Api.Function.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Function.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; if (parametersBuilder_ == null) { parameters_ = null; } else { parameters_ = null; parametersBuilder_ = null; } examples_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Function_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Function getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Function.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Function build() { com.volcengine.model.maas.api.Api.Function result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Function buildPartial() { com.volcengine.model.maas.api.Api.Function result = new com.volcengine.model.maas.api.Api.Function(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; if (parametersBuilder_ == null) { result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { examples_ = examples_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.examples_ = examples_; 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 com.volcengine.model.maas.api.Api.Function) { return mergeFrom((com.volcengine.model.maas.api.Api.Function)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Function other) { if (other == com.volcengine.model.maas.api.Api.Function.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasParameters()) { mergeParameters(other.getParameters()); } if (!other.examples_.isEmpty()) { if (examples_.isEmpty()) { examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExamplesIsMutable(); examples_.addAll(other.examples_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { input.readMessage( getParametersFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureExamplesIsMutable(); examples_.add(s); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name of the function.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the function.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the function.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * The name of the function.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name of the function.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A description of the function, used by the model to choose when and how to
       * call the function.
       * 
* * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A description of the function, used by the model to choose when and how to
       * call the function.
       * 
* * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A description of the function, used by the model to choose when and how to
       * call the function.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * A description of the function, used by the model to choose when and how to
       * call the function.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * A description of the function, used by the model to choose when and how to
       * call the function.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.Struct parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> parametersBuilder_; /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; * @return The parameters. */ public com.google.protobuf.Struct getParameters() { if (parametersBuilder_ == null) { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ public Builder setParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameters_ = value; onChanged(); } else { parametersBuilder_.setMessage(value); } return this; } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ public Builder setParameters( com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } onChanged(); } else { parametersBuilder_.mergeFrom(value); } return this; } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = null; onChanged(); } else { parameters_ = null; parametersBuilder_ = null; } return this; } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { onChanged(); return getParametersFieldBuilder().getBuilder(); } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } } /** *
       * The parameters of the function, described as Json Schema.
       * 
* * .google.protobuf.Struct parameters = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private com.google.protobuf.LazyStringList examples_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { examples_ = new com.google.protobuf.LazyStringArrayList(examples_); bitField0_ |= 0x00000001; } } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @return A list containing the examples. */ public com.google.protobuf.ProtocolStringList getExamplesList() { return examples_.getUnmodifiableView(); } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @return The count of examples. */ public int getExamplesCount() { return examples_.size(); } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @param index The index of the element to return. * @return The examples at the given index. */ public java.lang.String getExamples(int index) { return examples_.get(index); } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @param index The index of the value to return. * @return The bytes of the examples at the given index. */ public com.google.protobuf.ByteString getExamplesBytes(int index) { return examples_.getByteString(index); } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @param index The index to set the value at. * @param value The examples to set. * @return This builder for chaining. */ public Builder setExamples( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.set(index, value); onChanged(); return this; } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @param value The examples to add. * @return This builder for chaining. */ public Builder addExamples( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.add(value); onChanged(); return this; } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @param values The examples to add. * @return This builder for chaining. */ public Builder addAllExamples( java.lang.Iterable values) { ensureExamplesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, examples_); onChanged(); return this; } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @return This builder for chaining. */ public Builder clearExamples() { examples_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The examples of the function parameters, as the above json schema
       * describes.
       * 
* * repeated string examples = 4; * @param value The bytes of the examples to add. * @return This builder for chaining. */ public Builder addExamplesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExamplesIsMutable(); examples_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Function) } // @@protoc_insertion_point(class_scope:api.Function) private static final com.volcengine.model.maas.api.Api.Function DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Function(); } public static com.volcengine.model.maas.api.Api.Function getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Function 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.volcengine.model.maas.api.Api.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChatReqOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ChatReq) com.google.protobuf.MessageOrBuilder { /** *
     * Used model for inference
     * 
* * .api.Model model = 1; * @return Whether the model field is set. */ boolean hasModel(); /** *
     * Used model for inference
     * 
* * .api.Model model = 1; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** *
     * Used model for inference
     * 
* * .api.Model model = 1; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ java.util.List getMessagesList(); /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ com.volcengine.model.maas.api.Api.Message getMessages(int index); /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ int getMessagesCount(); /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ java.util.List getMessagesOrBuilderList(); /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ com.volcengine.model.maas.api.Api.MessageOrBuilder getMessagesOrBuilder( int index); /** *
     * API specific parameters
     * 
* * .api.Parameters parameters = 3; * @return Whether the parameters field is set. */ boolean hasParameters(); /** *
     * API specific parameters
     * 
* * .api.Parameters parameters = 3; * @return The parameters. */ com.volcengine.model.maas.api.Api.Parameters getParameters(); /** *
     * API specific parameters
     * 
* * .api.Parameters parameters = 3; */ com.volcengine.model.maas.api.Api.ParametersOrBuilder getParametersOrBuilder(); /** *
     * Whether use stream mode, if set, partial message deltas will be sent as
     * data-only server-sent events as they become available
     * The stream will be terminated by a data: [DONE]
     * 
* * bool stream = 4; * @return The stream. */ boolean getStream(); /** *
     * Unified request id
     * 
* * string req_id = 5; * @return The reqId. */ java.lang.String getReqId(); /** *
     * Unified request id
     * 
* * string req_id = 5; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** *
     * optional symmetric key to encrypt messages, the key itself is encrypted
     * with model's public key.
     * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return The cryptoToken. */ java.lang.String getCryptoToken(); /** *
     * optional symmetric key to encrypt messages, the key itself is encrypted
     * with model's public key.
     * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return The bytes for cryptoToken. */ com.google.protobuf.ByteString getCryptoTokenBytes(); /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ java.util.List getFunctionsList(); /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ com.volcengine.model.maas.api.Api.Function getFunctions(int index); /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ int getFunctionsCount(); /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ java.util.List getFunctionsOrBuilderList(); /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ com.volcengine.model.maas.api.Api.FunctionOrBuilder getFunctionsOrBuilder( int index); /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @return A list containing the plugins. */ java.util.List getPluginsList(); /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @return The count of plugins. */ int getPluginsCount(); /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @param index The index of the element to return. * @return The plugins at the given index. */ java.lang.String getPlugins(int index); /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @param index The index of the value to return. * @return The bytes of the plugins at the given index. */ com.google.protobuf.ByteString getPluginsBytes(int index); /** *
     * Method supports chat/tokenize/classification
     * 
* * string method = 9; * @return The method. */ java.lang.String getMethod(); /** *
     * Method supports chat/tokenize/classification
     * 
* * string method = 9; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ int getExtraCount(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ boolean containsExtra( java.lang.String key); /** * Use {@link #getExtraMap()} instead. */ @java.lang.Deprecated java.util.Map getExtra(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ java.util.Map getExtraMap(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ /* nullable */ java.lang.String getExtraOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ java.lang.String getExtraOrThrow( java.lang.String key); } /** * Protobuf type {@code api.ChatReq} */ public static final class ChatReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ChatReq) ChatReqOrBuilder { private static final long serialVersionUID = 0L; // Use ChatReq.newBuilder() to construct. private ChatReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChatReq() { messages_ = java.util.Collections.emptyList(); reqId_ = ""; cryptoToken_ = ""; functions_ = java.util.Collections.emptyList(); plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; method_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChatReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatReq_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 100: return internalGetExtra(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ChatReq.class, com.volcengine.model.maas.api.Api.ChatReq.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.volcengine.model.maas.api.Api.Model model_; /** *
     * Used model for inference
     * 
* * .api.Model model = 1; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** *
     * Used model for inference
     * 
* * .api.Model model = 1; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** *
     * Used model for inference
     * 
* * .api.Model model = 1; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int MESSAGES_FIELD_NUMBER = 2; private java.util.List messages_; /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ @java.lang.Override public java.util.List getMessagesList() { return messages_; } /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ @java.lang.Override public java.util.List getMessagesOrBuilderList() { return messages_; } /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ @java.lang.Override public int getMessagesCount() { return messages_.size(); } /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.Message getMessages(int index) { return messages_.get(index); } /** *
     * User input prompt
     * 
* * repeated .api.Message messages = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.MessageOrBuilder getMessagesOrBuilder( int index) { return messages_.get(index); } public static final int PARAMETERS_FIELD_NUMBER = 3; private com.volcengine.model.maas.api.Api.Parameters parameters_; /** *
     * API specific parameters
     * 
* * .api.Parameters parameters = 3; * @return Whether the parameters field is set. */ @java.lang.Override public boolean hasParameters() { return parameters_ != null; } /** *
     * API specific parameters
     * 
* * .api.Parameters parameters = 3; * @return The parameters. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Parameters getParameters() { return parameters_ == null ? com.volcengine.model.maas.api.Api.Parameters.getDefaultInstance() : parameters_; } /** *
     * API specific parameters
     * 
* * .api.Parameters parameters = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ParametersOrBuilder getParametersOrBuilder() { return getParameters(); } public static final int STREAM_FIELD_NUMBER = 4; private boolean stream_; /** *
     * Whether use stream mode, if set, partial message deltas will be sent as
     * data-only server-sent events as they become available
     * The stream will be terminated by a data: [DONE]
     * 
* * bool stream = 4; * @return The stream. */ @java.lang.Override public boolean getStream() { return stream_; } public static final int REQ_ID_FIELD_NUMBER = 5; private volatile java.lang.Object reqId_; /** *
     * Unified request id
     * 
* * string req_id = 5; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** *
     * Unified request id
     * 
* * string req_id = 5; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CRYPTO_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object cryptoToken_; /** *
     * optional symmetric key to encrypt messages, the key itself is encrypted
     * with model's public key.
     * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return The cryptoToken. */ @java.lang.Override public java.lang.String getCryptoToken() { java.lang.Object ref = cryptoToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoToken_ = s; return s; } } /** *
     * optional symmetric key to encrypt messages, the key itself is encrypted
     * with model's public key.
     * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return The bytes for cryptoToken. */ @java.lang.Override public com.google.protobuf.ByteString getCryptoTokenBytes() { java.lang.Object ref = cryptoToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cryptoToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FUNCTIONS_FIELD_NUMBER = 7; private java.util.List functions_; /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ @java.lang.Override public java.util.List getFunctionsList() { return functions_; } /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ @java.lang.Override public java.util.List getFunctionsOrBuilderList() { return functions_; } /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ @java.lang.Override public int getFunctionsCount() { return functions_.size(); } /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ @java.lang.Override public com.volcengine.model.maas.api.Api.Function getFunctions(int index) { return functions_.get(index); } /** *
     * optional list of functions the model may generate json inputs for.
     * 
* * repeated .api.Function functions = 7; */ @java.lang.Override public com.volcengine.model.maas.api.Api.FunctionOrBuilder getFunctionsOrBuilder( int index) { return functions_.get(index); } public static final int PLUGINS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList plugins_; /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @return A list containing the plugins. */ public com.google.protobuf.ProtocolStringList getPluginsList() { return plugins_; } /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @return The count of plugins. */ public int getPluginsCount() { return plugins_.size(); } /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @param index The index of the element to return. * @return The plugins at the given index. */ public java.lang.String getPlugins(int index) { return plugins_.get(index); } /** *
     * optional list of plugins the model may call.
     * 
* * repeated string plugins = 8; * @param index The index of the value to return. * @return The bytes of the plugins at the given index. */ public com.google.protobuf.ByteString getPluginsBytes(int index) { return plugins_.getByteString(index); } public static final int METHOD_FIELD_NUMBER = 9; private volatile java.lang.Object method_; /** *
     * Method supports chat/tokenize/classification
     * 
* * string method = 9; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** *
     * Method supports chat/tokenize/classification
     * 
* * string method = 9; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTRA_FIELD_NUMBER = 100; private static final class ExtraDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.volcengine.model.maas.api.Api.internal_static_api_ChatReq_ExtraEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extra_; private com.google.protobuf.MapField internalGetExtra() { if (extra_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtraDefaultEntryHolder.defaultEntry); } return extra_; } public int getExtraCount() { return internalGetExtra().getMap().size(); } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public boolean containsExtra( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtra().getMap().containsKey(key); } /** * Use {@link #getExtraMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtra() { return getExtraMap(); } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.util.Map getExtraMap() { return internalGetExtra().getMap(); } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (model_ != null) { output.writeMessage(1, getModel()); } for (int i = 0; i < messages_.size(); i++) { output.writeMessage(2, messages_.get(i)); } if (parameters_ != null) { output.writeMessage(3, getParameters()); } if (stream_ != false) { output.writeBool(4, stream_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cryptoToken_); } for (int i = 0; i < functions_.size(); i++) { output.writeMessage(7, functions_.get(i)); } for (int i = 0; i < plugins_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, plugins_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, method_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtra(), ExtraDefaultEntryHolder.defaultEntry, 100); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModel()); } for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, messages_.get(i)); } if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getParameters()); } if (stream_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, stream_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cryptoToken_); } for (int i = 0; i < functions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, functions_.get(i)); } { int dataSize = 0; for (int i = 0; i < plugins_.size(); i++) { dataSize += computeStringSizeNoTag(plugins_.getRaw(i)); } size += dataSize; size += 1 * getPluginsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, method_); } for (java.util.Map.Entry entry : internalGetExtra().getMap().entrySet()) { com.google.protobuf.MapEntry extra__ = ExtraDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(100, extra__); } 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.volcengine.model.maas.api.Api.ChatReq)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.ChatReq other = (com.volcengine.model.maas.api.Api.ChatReq) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (!getMessagesList() .equals(other.getMessagesList())) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { if (!getParameters() .equals(other.getParameters())) return false; } if (getStream() != other.getStream()) return false; if (!getReqId() .equals(other.getReqId())) return false; if (!getCryptoToken() .equals(other.getCryptoToken())) return false; if (!getFunctionsList() .equals(other.getFunctionsList())) return false; if (!getPluginsList() .equals(other.getPluginsList())) return false; if (!getMethod() .equals(other.getMethod())) return false; if (!internalGetExtra().equals( other.internalGetExtra())) 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 (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } if (getMessagesCount() > 0) { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } if (hasParameters()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); } hash = (37 * hash) + STREAM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStream()); hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); hash = (37 * hash) + CRYPTO_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getCryptoToken().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } if (getPluginsCount() > 0) { hash = (37 * hash) + PLUGINS_FIELD_NUMBER; hash = (53 * hash) + getPluginsList().hashCode(); } hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); if (!internalGetExtra().getMap().isEmpty()) { hash = (37 * hash) + EXTRA_FIELD_NUMBER; hash = (53 * hash) + internalGetExtra().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ChatReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ChatReq 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.volcengine.model.maas.api.Api.ChatReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ChatReq 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.volcengine.model.maas.api.Api.ChatReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ChatReq 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.volcengine.model.maas.api.Api.ChatReq 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; } /** * Protobuf type {@code api.ChatReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ChatReq) com.volcengine.model.maas.api.Api.ChatReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatReq_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 100: return internalGetExtra(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 100: return internalGetMutableExtra(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ChatReq.class, com.volcengine.model.maas.api.Api.ChatReq.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.ChatReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { messages_ = null; messagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (parametersBuilder_ == null) { parameters_ = null; } else { parameters_ = null; parametersBuilder_ = null; } stream_ = false; reqId_ = ""; cryptoToken_ = ""; if (functionsBuilder_ == null) { functions_ = java.util.Collections.emptyList(); } else { functions_ = null; functionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); method_ = ""; internalGetMutableExtra().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatReq_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.ChatReq getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.ChatReq.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.ChatReq build() { com.volcengine.model.maas.api.Api.ChatReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.ChatReq buildPartial() { com.volcengine.model.maas.api.Api.ChatReq result = new com.volcengine.model.maas.api.Api.ChatReq(this); int from_bitField0_ = bitField0_; if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } if (parametersBuilder_ == null) { result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } result.stream_ = stream_; result.reqId_ = reqId_; result.cryptoToken_ = cryptoToken_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); bitField0_ = (bitField0_ & ~0x00000002); } result.functions_ = functions_; } else { result.functions_ = functionsBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { plugins_ = plugins_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.plugins_ = plugins_; result.method_ = method_; result.extra_ = internalGetExtra(); result.extra_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.ChatReq) { return mergeFrom((com.volcengine.model.maas.api.Api.ChatReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.ChatReq other) { if (other == com.volcengine.model.maas.api.Api.ChatReq.getDefaultInstance()) return this; if (other.hasModel()) { mergeModel(other.getModel()); } if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } onChanged(); } } else { if (!other.messages_.isEmpty()) { if (messagesBuilder_.isEmpty()) { messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } } } if (other.hasParameters()) { mergeParameters(other.getParameters()); } if (other.getStream() != false) { setStream(other.getStream()); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (!other.getCryptoToken().isEmpty()) { cryptoToken_ = other.cryptoToken_; onChanged(); } if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } } else { if (!other.functions_.isEmpty()) { if (functionsBuilder_.isEmpty()) { functionsBuilder_.dispose(); functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); functionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionsFieldBuilder() : null; } else { functionsBuilder_.addAllMessages(other.functions_); } } } if (!other.plugins_.isEmpty()) { if (plugins_.isEmpty()) { plugins_ = other.plugins_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePluginsIsMutable(); plugins_.addAll(other.plugins_); } onChanged(); } if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); } internalGetMutableExtra().mergeFrom( other.internalGetExtra()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { com.volcengine.model.maas.api.Api.Message m = input.readMessage( com.volcengine.model.maas.api.Api.Message.parser(), extensionRegistry); if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(m); } else { messagesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getParametersFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 32: { stream_ = input.readBool(); break; } // case 32 case 42: { reqId_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { cryptoToken_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { com.volcengine.model.maas.api.Api.Function m = input.readMessage( com.volcengine.model.maas.api.Api.Function.parser(), extensionRegistry); if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.add(m); } else { functionsBuilder_.addMessage(m); } break; } // case 58 case 66: { java.lang.String s = input.readStringRequireUtf8(); ensurePluginsIsMutable(); plugins_.add(s); break; } // case 66 case 74: { method_ = input.readStringRequireUtf8(); break; } // case 74 case 802: { com.google.protobuf.MapEntry extra__ = input.readMessage( ExtraDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtra().getMutableMap().put( extra__.getKey(), extra__.getValue()); break; } // case 802 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.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** *
       * Used model for inference
       * 
* * .api.Model model = 1; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** *
       * Used model for inference
       * 
* * .api.Model model = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private java.util.List messages_ = java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Message, com.volcengine.model.maas.api.Api.Message.Builder, com.volcengine.model.maas.api.Api.MessageOrBuilder> messagesBuilder_; /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { return java.util.Collections.unmodifiableList(messages_); } else { return messagesBuilder_.getMessageList(); } } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public int getMessagesCount() { if (messagesBuilder_ == null) { return messages_.size(); } else { return messagesBuilder_.getCount(); } } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public com.volcengine.model.maas.api.Api.Message getMessages(int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessage(index); } } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder setMessages( int index, com.volcengine.model.maas.api.Api.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); onChanged(); } else { messagesBuilder_.setMessage(index, value); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder setMessages( int index, com.volcengine.model.maas.api.Api.Message.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.set(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder addMessages(com.volcengine.model.maas.api.Api.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); onChanged(); } else { messagesBuilder_.addMessage(value); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder addMessages( int index, com.volcengine.model.maas.api.Api.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(index, value); onChanged(); } else { messagesBuilder_.addMessage(index, value); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder addMessages( com.volcengine.model.maas.api.Api.Message.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder addMessages( int index, com.volcengine.model.maas.api.Api.Message.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { messagesBuilder_.clear(); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.remove(index); onChanged(); } else { messagesBuilder_.remove(index); } return this; } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public com.volcengine.model.maas.api.Api.Message.Builder getMessagesBuilder( int index) { return getMessagesFieldBuilder().getBuilder(index); } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public com.volcengine.model.maas.api.Api.MessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public java.util.List getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messages_); } } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public com.volcengine.model.maas.api.Api.Message.Builder addMessagesBuilder() { return getMessagesFieldBuilder().addBuilder( com.volcengine.model.maas.api.Api.Message.getDefaultInstance()); } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public com.volcengine.model.maas.api.Api.Message.Builder addMessagesBuilder( int index) { return getMessagesFieldBuilder().addBuilder( index, com.volcengine.model.maas.api.Api.Message.getDefaultInstance()); } /** *
       * User input prompt
       * 
* * repeated .api.Message messages = 2; */ public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Message, com.volcengine.model.maas.api.Api.Message.Builder, com.volcengine.model.maas.api.Api.MessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Message, com.volcengine.model.maas.api.Api.Message.Builder, com.volcengine.model.maas.api.Api.MessageOrBuilder>( messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } private com.volcengine.model.maas.api.Api.Parameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Parameters, com.volcengine.model.maas.api.Api.Parameters.Builder, com.volcengine.model.maas.api.Api.ParametersOrBuilder> parametersBuilder_; /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; * @return The parameters. */ public com.volcengine.model.maas.api.Api.Parameters getParameters() { if (parametersBuilder_ == null) { return parameters_ == null ? com.volcengine.model.maas.api.Api.Parameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ public Builder setParameters(com.volcengine.model.maas.api.Api.Parameters value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameters_ = value; onChanged(); } else { parametersBuilder_.setMessage(value); } return this; } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ public Builder setParameters( com.volcengine.model.maas.api.Api.Parameters.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ public Builder mergeParameters(com.volcengine.model.maas.api.Api.Parameters value) { if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = com.volcengine.model.maas.api.Api.Parameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } onChanged(); } else { parametersBuilder_.mergeFrom(value); } return this; } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = null; onChanged(); } else { parameters_ = null; parametersBuilder_ = null; } return this; } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ public com.volcengine.model.maas.api.Api.Parameters.Builder getParametersBuilder() { onChanged(); return getParametersFieldBuilder().getBuilder(); } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ public com.volcengine.model.maas.api.Api.ParametersOrBuilder getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { return parameters_ == null ? com.volcengine.model.maas.api.Api.Parameters.getDefaultInstance() : parameters_; } } /** *
       * API specific parameters
       * 
* * .api.Parameters parameters = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Parameters, com.volcengine.model.maas.api.Api.Parameters.Builder, com.volcengine.model.maas.api.Api.ParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Parameters, com.volcengine.model.maas.api.Api.Parameters.Builder, com.volcengine.model.maas.api.Api.ParametersOrBuilder>( getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private boolean stream_ ; /** *
       * Whether use stream mode, if set, partial message deltas will be sent as
       * data-only server-sent events as they become available
       * The stream will be terminated by a data: [DONE]
       * 
* * bool stream = 4; * @return The stream. */ @java.lang.Override public boolean getStream() { return stream_; } /** *
       * Whether use stream mode, if set, partial message deltas will be sent as
       * data-only server-sent events as they become available
       * The stream will be terminated by a data: [DONE]
       * 
* * bool stream = 4; * @param value The stream to set. * @return This builder for chaining. */ public Builder setStream(boolean value) { stream_ = value; onChanged(); return this; } /** *
       * Whether use stream mode, if set, partial message deltas will be sent as
       * data-only server-sent events as they become available
       * The stream will be terminated by a data: [DONE]
       * 
* * bool stream = 4; * @return This builder for chaining. */ public Builder clearStream() { stream_ = false; onChanged(); return this; } private java.lang.Object reqId_ = ""; /** *
       * Unified request id
       * 
* * string req_id = 5; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 5; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 5; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 5; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 5; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private java.lang.Object cryptoToken_ = ""; /** *
       * optional symmetric key to encrypt messages, the key itself is encrypted
       * with model's public key.
       * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return The cryptoToken. */ public java.lang.String getCryptoToken() { java.lang.Object ref = cryptoToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * optional symmetric key to encrypt messages, the key itself is encrypted
       * with model's public key.
       * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return The bytes for cryptoToken. */ public com.google.protobuf.ByteString getCryptoTokenBytes() { java.lang.Object ref = cryptoToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cryptoToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * optional symmetric key to encrypt messages, the key itself is encrypted
       * with model's public key.
       * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @param value The cryptoToken to set. * @return This builder for chaining. */ public Builder setCryptoToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cryptoToken_ = value; onChanged(); return this; } /** *
       * optional symmetric key to encrypt messages, the key itself is encrypted
       * with model's public key.
       * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @return This builder for chaining. */ public Builder clearCryptoToken() { cryptoToken_ = getDefaultInstance().getCryptoToken(); onChanged(); return this; } /** *
       * optional symmetric key to encrypt messages, the key itself is encrypted
       * with model's public key.
       * 
* * string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"]; * @param value The bytes for cryptoToken to set. * @return This builder for chaining. */ public Builder setCryptoTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cryptoToken_ = value; onChanged(); return this; } private java.util.List functions_ = java.util.Collections.emptyList(); private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Function, com.volcengine.model.maas.api.Api.Function.Builder, com.volcengine.model.maas.api.Api.FunctionOrBuilder> functionsBuilder_; /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public java.util.List getFunctionsList() { if (functionsBuilder_ == null) { return java.util.Collections.unmodifiableList(functions_); } else { return functionsBuilder_.getMessageList(); } } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public int getFunctionsCount() { if (functionsBuilder_ == null) { return functions_.size(); } else { return functionsBuilder_.getCount(); } } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public com.volcengine.model.maas.api.Api.Function getFunctions(int index) { if (functionsBuilder_ == null) { return functions_.get(index); } else { return functionsBuilder_.getMessage(index); } } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder setFunctions( int index, com.volcengine.model.maas.api.Api.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.set(index, value); onChanged(); } else { functionsBuilder_.setMessage(index, value); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder setFunctions( int index, com.volcengine.model.maas.api.Api.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.set(index, builderForValue.build()); onChanged(); } else { functionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder addFunctions(com.volcengine.model.maas.api.Api.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.add(value); onChanged(); } else { functionsBuilder_.addMessage(value); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder addFunctions( int index, com.volcengine.model.maas.api.Api.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.add(index, value); onChanged(); } else { functionsBuilder_.addMessage(index, value); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder addFunctions( com.volcengine.model.maas.api.Api.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.add(builderForValue.build()); onChanged(); } else { functionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder addFunctions( int index, com.volcengine.model.maas.api.Api.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.add(index, builderForValue.build()); onChanged(); } else { functionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder clearFunctions() { if (functionsBuilder_ == null) { functions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { functionsBuilder_.clear(); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public Builder removeFunctions(int index) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.remove(index); onChanged(); } else { functionsBuilder_.remove(index); } return this; } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public com.volcengine.model.maas.api.Api.Function.Builder getFunctionsBuilder( int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public com.volcengine.model.maas.api.Api.FunctionOrBuilder getFunctionsOrBuilder( int index) { if (functionsBuilder_ == null) { return functions_.get(index); } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public java.util.List getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(functions_); } } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public com.volcengine.model.maas.api.Api.Function.Builder addFunctionsBuilder() { return getFunctionsFieldBuilder().addBuilder( com.volcengine.model.maas.api.Api.Function.getDefaultInstance()); } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public com.volcengine.model.maas.api.Api.Function.Builder addFunctionsBuilder( int index) { return getFunctionsFieldBuilder().addBuilder( index, com.volcengine.model.maas.api.Api.Function.getDefaultInstance()); } /** *
       * optional list of functions the model may generate json inputs for.
       * 
* * repeated .api.Function functions = 7; */ public java.util.List getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Function, com.volcengine.model.maas.api.Api.Function.Builder, com.volcengine.model.maas.api.Api.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Function, com.volcengine.model.maas.api.Api.Function.Builder, com.volcengine.model.maas.api.Api.FunctionOrBuilder>( functions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); functions_ = null; } return functionsBuilder_; } private com.google.protobuf.LazyStringList plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePluginsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { plugins_ = new com.google.protobuf.LazyStringArrayList(plugins_); bitField0_ |= 0x00000004; } } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @return A list containing the plugins. */ public com.google.protobuf.ProtocolStringList getPluginsList() { return plugins_.getUnmodifiableView(); } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @return The count of plugins. */ public int getPluginsCount() { return plugins_.size(); } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @param index The index of the element to return. * @return The plugins at the given index. */ public java.lang.String getPlugins(int index) { return plugins_.get(index); } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @param index The index of the value to return. * @return The bytes of the plugins at the given index. */ public com.google.protobuf.ByteString getPluginsBytes(int index) { return plugins_.getByteString(index); } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @param index The index to set the value at. * @param value The plugins to set. * @return This builder for chaining. */ public Builder setPlugins( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePluginsIsMutable(); plugins_.set(index, value); onChanged(); return this; } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @param value The plugins to add. * @return This builder for chaining. */ public Builder addPlugins( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePluginsIsMutable(); plugins_.add(value); onChanged(); return this; } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @param values The plugins to add. * @return This builder for chaining. */ public Builder addAllPlugins( java.lang.Iterable values) { ensurePluginsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, plugins_); onChanged(); return this; } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @return This builder for chaining. */ public Builder clearPlugins() { plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * optional list of plugins the model may call.
       * 
* * repeated string plugins = 8; * @param value The bytes of the plugins to add. * @return This builder for chaining. */ public Builder addPluginsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePluginsIsMutable(); plugins_.add(value); onChanged(); return this; } private java.lang.Object method_ = ""; /** *
       * Method supports chat/tokenize/classification
       * 
* * string method = 9; * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Method supports chat/tokenize/classification
       * 
* * string method = 9; * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Method supports chat/tokenize/classification
       * 
* * string method = 9; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); return this; } /** *
       * Method supports chat/tokenize/classification
       * 
* * string method = 9; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** *
       * Method supports chat/tokenize/classification
       * 
* * string method = 9; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extra_; private com.google.protobuf.MapField internalGetExtra() { if (extra_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtraDefaultEntryHolder.defaultEntry); } return extra_; } private com.google.protobuf.MapField internalGetMutableExtra() { onChanged();; if (extra_ == null) { extra_ = com.google.protobuf.MapField.newMapField( ExtraDefaultEntryHolder.defaultEntry); } if (!extra_.isMutable()) { extra_ = extra_.copy(); } return extra_; } public int getExtraCount() { return internalGetExtra().getMap().size(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public boolean containsExtra( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtra().getMap().containsKey(key); } /** * Use {@link #getExtraMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtra() { return getExtraMap(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.util.Map getExtraMap() { return internalGetExtra().getMap(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtra() { internalGetMutableExtra().getMutableMap() .clear(); return this; } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ public Builder removeExtra( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtra().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtra() { return internalGetMutableExtra().getMutableMap(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ public Builder putExtra( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtra().getMutableMap() .put(key, value); return this; } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ public Builder putAllExtra( java.util.Map values) { internalGetMutableExtra().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.ChatReq) } // @@protoc_insertion_point(class_scope:api.ChatReq) private static final com.volcengine.model.maas.api.Api.ChatReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.ChatReq(); } public static com.volcengine.model.maas.api.Api.ChatReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChatReq 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.volcengine.model.maas.api.Api.ChatReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TokenizeReqOrBuilder extends // @@protoc_insertion_point(interface_extends:api.TokenizeReq) com.google.protobuf.MessageOrBuilder { /** * .api.Model model = 1; * @return Whether the model field is set. */ boolean hasModel(); /** * .api.Model model = 1; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** * .api.Model model = 1; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); /** * string req_id = 2; * @return The reqId. */ java.lang.String getReqId(); /** * string req_id = 2; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** * string text = 3; * @return The text. */ java.lang.String getText(); /** * string text = 3; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); } /** * Protobuf type {@code api.TokenizeReq} */ public static final class TokenizeReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.TokenizeReq) TokenizeReqOrBuilder { private static final long serialVersionUID = 0L; // Use TokenizeReq.newBuilder() to construct. private TokenizeReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenizeReq() { reqId_ = ""; text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TokenizeReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.TokenizeReq.class, com.volcengine.model.maas.api.Api.TokenizeReq.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.volcengine.model.maas.api.Api.Model model_; /** * .api.Model model = 1; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** * .api.Model model = 1; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** * .api.Model model = 1; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int REQ_ID_FIELD_NUMBER = 2; private volatile java.lang.Object reqId_; /** * string req_id = 2; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** * string req_id = 2; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 3; private volatile java.lang.Object text_; /** * string text = 3; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** * string text = 3; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (model_ != null) { output.writeMessage(1, getModel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } 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.volcengine.model.maas.api.Api.TokenizeReq)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.TokenizeReq other = (com.volcengine.model.maas.api.Api.TokenizeReq) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (!getReqId() .equals(other.getReqId())) return false; if (!getText() .equals(other.getText())) 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 (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TokenizeReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TokenizeReq 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.volcengine.model.maas.api.Api.TokenizeReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TokenizeReq 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.volcengine.model.maas.api.Api.TokenizeReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TokenizeReq 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.volcengine.model.maas.api.Api.TokenizeReq 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; } /** * Protobuf type {@code api.TokenizeReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.TokenizeReq) com.volcengine.model.maas.api.Api.TokenizeReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.TokenizeReq.class, com.volcengine.model.maas.api.Api.TokenizeReq.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.TokenizeReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } reqId_ = ""; text_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeReq_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.TokenizeReq getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.TokenizeReq.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.TokenizeReq build() { com.volcengine.model.maas.api.Api.TokenizeReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.TokenizeReq buildPartial() { com.volcengine.model.maas.api.Api.TokenizeReq result = new com.volcengine.model.maas.api.Api.TokenizeReq(this); if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } result.reqId_ = reqId_; result.text_ = text_; 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 com.volcengine.model.maas.api.Api.TokenizeReq) { return mergeFrom((com.volcengine.model.maas.api.Api.TokenizeReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.TokenizeReq other) { if (other == com.volcengine.model.maas.api.Api.TokenizeReq.getDefaultInstance()) return this; if (other.hasModel()) { mergeModel(other.getModel()); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (!other.getText().isEmpty()) { text_ = other.text_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { reqId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { text_ = input.readStringRequireUtf8(); break; } // case 26 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 com.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** * .api.Model model = 1; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** * .api.Model model = 1; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** * .api.Model model = 1; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** * .api.Model model = 1; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Model model = 1; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** * .api.Model model = 1; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** * .api.Model model = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private java.lang.Object reqId_ = ""; /** * string req_id = 2; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string req_id = 2; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string req_id = 2; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** * string req_id = 2; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** * string req_id = 2; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private java.lang.Object text_ = ""; /** * string text = 3; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** * string text = 3; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string text = 3; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; onChanged(); return this; } /** * string text = 3; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); onChanged(); return this; } /** * string text = 3; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.TokenizeReq) } // @@protoc_insertion_point(class_scope:api.TokenizeReq) private static final com.volcengine.model.maas.api.Api.TokenizeReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.TokenizeReq(); } public static com.volcengine.model.maas.api.Api.TokenizeReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenizeReq 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.volcengine.model.maas.api.Api.TokenizeReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TokenizeRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.TokenizeResp) com.google.protobuf.MessageOrBuilder { /** * int64 total_tokens = 1; * @return The totalTokens. */ long getTotalTokens(); /** * repeated string tokens = 2; * @return A list containing the tokens. */ java.util.List getTokensList(); /** * repeated string tokens = 2; * @return The count of tokens. */ int getTokensCount(); /** * repeated string tokens = 2; * @param index The index of the element to return. * @return The tokens at the given index. */ java.lang.String getTokens(int index); /** * repeated string tokens = 2; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ com.google.protobuf.ByteString getTokensBytes(int index); /** *
     * Unified request id
     * 
* * string req_id = 3; * @return The reqId. */ java.lang.String getReqId(); /** *
     * Unified request id
     * 
* * string req_id = 3; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 4; * @return Whether the error field is set. */ boolean hasError(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 4; * @return The error. */ com.volcengine.model.maas.api.Api.Error getError(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 4; */ com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code api.TokenizeResp} */ public static final class TokenizeResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.TokenizeResp) TokenizeRespOrBuilder { private static final long serialVersionUID = 0L; // Use TokenizeResp.newBuilder() to construct. private TokenizeResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenizeResp() { tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; reqId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TokenizeResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.TokenizeResp.class, com.volcengine.model.maas.api.Api.TokenizeResp.Builder.class); } public static final int TOTAL_TOKENS_FIELD_NUMBER = 1; private long totalTokens_; /** * int64 total_tokens = 1; * @return The totalTokens. */ @java.lang.Override public long getTotalTokens() { return totalTokens_; } public static final int TOKENS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList tokens_; /** * repeated string tokens = 2; * @return A list containing the tokens. */ public com.google.protobuf.ProtocolStringList getTokensList() { return tokens_; } /** * repeated string tokens = 2; * @return The count of tokens. */ public int getTokensCount() { return tokens_.size(); } /** * repeated string tokens = 2; * @param index The index of the element to return. * @return The tokens at the given index. */ public java.lang.String getTokens(int index) { return tokens_.get(index); } /** * repeated string tokens = 2; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ public com.google.protobuf.ByteString getTokensBytes(int index) { return tokens_.getByteString(index); } public static final int REQ_ID_FIELD_NUMBER = 3; private volatile java.lang.Object reqId_; /** *
     * Unified request id
     * 
* * string req_id = 3; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** *
     * Unified request id
     * 
* * string req_id = 3; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 4; private com.volcengine.model.maas.api.Api.Error error_; /** *
     * Error if exists for the req
     * 
* * .api.Error error = 4; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return error_ != null; } /** *
     * Error if exists for the req
     * 
* * .api.Error error = 4; * @return The error. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Error getError() { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } /** *
     * Error if exists for the req
     * 
* * .api.Error error = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (totalTokens_ != 0L) { output.writeInt64(1, totalTokens_); } for (int i = 0; i < tokens_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tokens_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reqId_); } if (error_ != null) { output.writeMessage(4, getError()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (totalTokens_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, totalTokens_); } { int dataSize = 0; for (int i = 0; i < tokens_.size(); i++) { dataSize += computeStringSizeNoTag(tokens_.getRaw(i)); } size += dataSize; size += 1 * getTokensList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reqId_); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getError()); } 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.volcengine.model.maas.api.Api.TokenizeResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.TokenizeResp other = (com.volcengine.model.maas.api.Api.TokenizeResp) obj; if (getTotalTokens() != other.getTotalTokens()) return false; if (!getTokensList() .equals(other.getTokensList())) return false; if (!getReqId() .equals(other.getReqId())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError() .equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalTokens()); if (getTokensCount() > 0) { hash = (37 * hash) + TOKENS_FIELD_NUMBER; hash = (53 * hash) + getTokensList().hashCode(); } hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.TokenizeResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TokenizeResp 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.volcengine.model.maas.api.Api.TokenizeResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TokenizeResp 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.volcengine.model.maas.api.Api.TokenizeResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.TokenizeResp 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.volcengine.model.maas.api.Api.TokenizeResp 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; } /** * Protobuf type {@code api.TokenizeResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.TokenizeResp) com.volcengine.model.maas.api.Api.TokenizeRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.TokenizeResp.class, com.volcengine.model.maas.api.Api.TokenizeResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.TokenizeResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); totalTokens_ = 0L; tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); reqId_ = ""; if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_TokenizeResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.TokenizeResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.TokenizeResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.TokenizeResp build() { com.volcengine.model.maas.api.Api.TokenizeResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.TokenizeResp buildPartial() { com.volcengine.model.maas.api.Api.TokenizeResp result = new com.volcengine.model.maas.api.Api.TokenizeResp(this); int from_bitField0_ = bitField0_; result.totalTokens_ = totalTokens_; if (((bitField0_ & 0x00000001) != 0)) { tokens_ = tokens_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tokens_ = tokens_; result.reqId_ = reqId_; if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.TokenizeResp) { return mergeFrom((com.volcengine.model.maas.api.Api.TokenizeResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.TokenizeResp other) { if (other == com.volcengine.model.maas.api.Api.TokenizeResp.getDefaultInstance()) return this; if (other.getTotalTokens() != 0L) { setTotalTokens(other.getTotalTokens()); } if (!other.tokens_.isEmpty()) { if (tokens_.isEmpty()) { tokens_ = other.tokens_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTokensIsMutable(); tokens_.addAll(other.tokens_); } onChanged(); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (other.hasError()) { mergeError(other.getError()); } 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 8: { totalTokens_ = input.readInt64(); break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureTokensIsMutable(); tokens_.add(s); break; } // case 18 case 26: { reqId_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { input.readMessage( getErrorFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long totalTokens_ ; /** * int64 total_tokens = 1; * @return The totalTokens. */ @java.lang.Override public long getTotalTokens() { return totalTokens_; } /** * int64 total_tokens = 1; * @param value The totalTokens to set. * @return This builder for chaining. */ public Builder setTotalTokens(long value) { totalTokens_ = value; onChanged(); return this; } /** * int64 total_tokens = 1; * @return This builder for chaining. */ public Builder clearTotalTokens() { totalTokens_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTokensIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tokens_ = new com.google.protobuf.LazyStringArrayList(tokens_); bitField0_ |= 0x00000001; } } /** * repeated string tokens = 2; * @return A list containing the tokens. */ public com.google.protobuf.ProtocolStringList getTokensList() { return tokens_.getUnmodifiableView(); } /** * repeated string tokens = 2; * @return The count of tokens. */ public int getTokensCount() { return tokens_.size(); } /** * repeated string tokens = 2; * @param index The index of the element to return. * @return The tokens at the given index. */ public java.lang.String getTokens(int index) { return tokens_.get(index); } /** * repeated string tokens = 2; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ public com.google.protobuf.ByteString getTokensBytes(int index) { return tokens_.getByteString(index); } /** * repeated string tokens = 2; * @param index The index to set the value at. * @param value The tokens to set. * @return This builder for chaining. */ public Builder setTokens( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTokensIsMutable(); tokens_.set(index, value); onChanged(); return this; } /** * repeated string tokens = 2; * @param value The tokens to add. * @return This builder for chaining. */ public Builder addTokens( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTokensIsMutable(); tokens_.add(value); onChanged(); return this; } /** * repeated string tokens = 2; * @param values The tokens to add. * @return This builder for chaining. */ public Builder addAllTokens( java.lang.Iterable values) { ensureTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokens_); onChanged(); return this; } /** * repeated string tokens = 2; * @return This builder for chaining. */ public Builder clearTokens() { tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string tokens = 2; * @param value The bytes of the tokens to add. * @return This builder for chaining. */ public Builder addTokensBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTokensIsMutable(); tokens_.add(value); onChanged(); return this; } private java.lang.Object reqId_ = ""; /** *
       * Unified request id
       * 
* * string req_id = 3; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 3; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 3; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 3; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 3; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private com.volcengine.model.maas.api.Api.Error error_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> errorBuilder_; /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; * @return The error. */ public com.volcengine.model.maas.api.Api.Error getError() { if (errorBuilder_ == null) { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ public Builder setError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ public Builder setError( com.volcengine.model.maas.api.Api.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ public Builder mergeError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = com.volcengine.model.maas.api.Api.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ public com.volcengine.model.maas.api.Api.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } @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:api.TokenizeResp) } // @@protoc_insertion_point(class_scope:api.TokenizeResp) private static final com.volcengine.model.maas.api.Api.TokenizeResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.TokenizeResp(); } public static com.volcengine.model.maas.api.Api.TokenizeResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenizeResp 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.volcengine.model.maas.api.Api.TokenizeResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LabelLogprobosValueOrBuilder extends // @@protoc_insertion_point(interface_extends:api.LabelLogprobosValue) com.google.protobuf.MessageOrBuilder { /** * repeated string tokens = 1; * @return A list containing the tokens. */ java.util.List getTokensList(); /** * repeated string tokens = 1; * @return The count of tokens. */ int getTokensCount(); /** * repeated string tokens = 1; * @param index The index of the element to return. * @return The tokens at the given index. */ java.lang.String getTokens(int index); /** * repeated string tokens = 1; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ com.google.protobuf.ByteString getTokensBytes(int index); /** * repeated double token_logprobs = 2; * @return A list containing the tokenLogprobs. */ java.util.List getTokenLogprobsList(); /** * repeated double token_logprobs = 2; * @return The count of tokenLogprobs. */ int getTokenLogprobsCount(); /** * repeated double token_logprobs = 2; * @param index The index of the element to return. * @return The tokenLogprobs at the given index. */ double getTokenLogprobs(int index); /** * string req_id = 3; * @return The reqId. */ java.lang.String getReqId(); /** * string req_id = 3; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); } /** * Protobuf type {@code api.LabelLogprobosValue} */ public static final class LabelLogprobosValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.LabelLogprobosValue) LabelLogprobosValueOrBuilder { private static final long serialVersionUID = 0L; // Use LabelLogprobosValue.newBuilder() to construct. private LabelLogprobosValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LabelLogprobosValue() { tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; tokenLogprobs_ = emptyDoubleList(); reqId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LabelLogprobosValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_LabelLogprobosValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_LabelLogprobosValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.LabelLogprobosValue.class, com.volcengine.model.maas.api.Api.LabelLogprobosValue.Builder.class); } public static final int TOKENS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList tokens_; /** * repeated string tokens = 1; * @return A list containing the tokens. */ public com.google.protobuf.ProtocolStringList getTokensList() { return tokens_; } /** * repeated string tokens = 1; * @return The count of tokens. */ public int getTokensCount() { return tokens_.size(); } /** * repeated string tokens = 1; * @param index The index of the element to return. * @return The tokens at the given index. */ public java.lang.String getTokens(int index) { return tokens_.get(index); } /** * repeated string tokens = 1; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ public com.google.protobuf.ByteString getTokensBytes(int index) { return tokens_.getByteString(index); } public static final int TOKEN_LOGPROBS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.DoubleList tokenLogprobs_; /** * repeated double token_logprobs = 2; * @return A list containing the tokenLogprobs. */ @java.lang.Override public java.util.List getTokenLogprobsList() { return tokenLogprobs_; } /** * repeated double token_logprobs = 2; * @return The count of tokenLogprobs. */ public int getTokenLogprobsCount() { return tokenLogprobs_.size(); } /** * repeated double token_logprobs = 2; * @param index The index of the element to return. * @return The tokenLogprobs at the given index. */ public double getTokenLogprobs(int index) { return tokenLogprobs_.getDouble(index); } private int tokenLogprobsMemoizedSerializedSize = -1; public static final int REQ_ID_FIELD_NUMBER = 3; private volatile java.lang.Object reqId_; /** * string req_id = 3; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** * string req_id = 3; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < tokens_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tokens_.getRaw(i)); } if (getTokenLogprobsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(tokenLogprobsMemoizedSerializedSize); } for (int i = 0; i < tokenLogprobs_.size(); i++) { output.writeDoubleNoTag(tokenLogprobs_.getDouble(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reqId_); } 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 < tokens_.size(); i++) { dataSize += computeStringSizeNoTag(tokens_.getRaw(i)); } size += dataSize; size += 1 * getTokensList().size(); } { int dataSize = 0; dataSize = 8 * getTokenLogprobsList().size(); size += dataSize; if (!getTokenLogprobsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } tokenLogprobsMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reqId_); } 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.volcengine.model.maas.api.Api.LabelLogprobosValue)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.LabelLogprobosValue other = (com.volcengine.model.maas.api.Api.LabelLogprobosValue) obj; if (!getTokensList() .equals(other.getTokensList())) return false; if (!getTokenLogprobsList() .equals(other.getTokenLogprobsList())) return false; if (!getReqId() .equals(other.getReqId())) 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 (getTokensCount() > 0) { hash = (37 * hash) + TOKENS_FIELD_NUMBER; hash = (53 * hash) + getTokensList().hashCode(); } if (getTokenLogprobsCount() > 0) { hash = (37 * hash) + TOKEN_LOGPROBS_FIELD_NUMBER; hash = (53 * hash) + getTokenLogprobsList().hashCode(); } hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue 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.volcengine.model.maas.api.Api.LabelLogprobosValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue 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.volcengine.model.maas.api.Api.LabelLogprobosValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue 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.volcengine.model.maas.api.Api.LabelLogprobosValue 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; } /** * Protobuf type {@code api.LabelLogprobosValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.LabelLogprobosValue) com.volcengine.model.maas.api.Api.LabelLogprobosValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_LabelLogprobosValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_LabelLogprobosValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.LabelLogprobosValue.class, com.volcengine.model.maas.api.Api.LabelLogprobosValue.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.LabelLogprobosValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); tokenLogprobs_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000002); reqId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_LabelLogprobosValue_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.LabelLogprobosValue.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue build() { com.volcengine.model.maas.api.Api.LabelLogprobosValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue buildPartial() { com.volcengine.model.maas.api.Api.LabelLogprobosValue result = new com.volcengine.model.maas.api.Api.LabelLogprobosValue(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { tokens_ = tokens_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tokens_ = tokens_; if (((bitField0_ & 0x00000002) != 0)) { tokenLogprobs_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.tokenLogprobs_ = tokenLogprobs_; result.reqId_ = reqId_; 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 com.volcengine.model.maas.api.Api.LabelLogprobosValue) { return mergeFrom((com.volcengine.model.maas.api.Api.LabelLogprobosValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.LabelLogprobosValue other) { if (other == com.volcengine.model.maas.api.Api.LabelLogprobosValue.getDefaultInstance()) return this; if (!other.tokens_.isEmpty()) { if (tokens_.isEmpty()) { tokens_ = other.tokens_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTokensIsMutable(); tokens_.addAll(other.tokens_); } onChanged(); } if (!other.tokenLogprobs_.isEmpty()) { if (tokenLogprobs_.isEmpty()) { tokenLogprobs_ = other.tokenLogprobs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTokenLogprobsIsMutable(); tokenLogprobs_.addAll(other.tokenLogprobs_); } onChanged(); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureTokensIsMutable(); tokens_.add(s); break; } // case 10 case 17: { double v = input.readDouble(); ensureTokenLogprobsIsMutable(); tokenLogprobs_.addDouble(v); break; } // case 17 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTokenLogprobsIsMutable(); while (input.getBytesUntilLimit() > 0) { tokenLogprobs_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 18 case 26: { reqId_ = input.readStringRequireUtf8(); break; } // case 26 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 tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTokensIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tokens_ = new com.google.protobuf.LazyStringArrayList(tokens_); bitField0_ |= 0x00000001; } } /** * repeated string tokens = 1; * @return A list containing the tokens. */ public com.google.protobuf.ProtocolStringList getTokensList() { return tokens_.getUnmodifiableView(); } /** * repeated string tokens = 1; * @return The count of tokens. */ public int getTokensCount() { return tokens_.size(); } /** * repeated string tokens = 1; * @param index The index of the element to return. * @return The tokens at the given index. */ public java.lang.String getTokens(int index) { return tokens_.get(index); } /** * repeated string tokens = 1; * @param index The index of the value to return. * @return The bytes of the tokens at the given index. */ public com.google.protobuf.ByteString getTokensBytes(int index) { return tokens_.getByteString(index); } /** * repeated string tokens = 1; * @param index The index to set the value at. * @param value The tokens to set. * @return This builder for chaining. */ public Builder setTokens( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTokensIsMutable(); tokens_.set(index, value); onChanged(); return this; } /** * repeated string tokens = 1; * @param value The tokens to add. * @return This builder for chaining. */ public Builder addTokens( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTokensIsMutable(); tokens_.add(value); onChanged(); return this; } /** * repeated string tokens = 1; * @param values The tokens to add. * @return This builder for chaining. */ public Builder addAllTokens( java.lang.Iterable values) { ensureTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokens_); onChanged(); return this; } /** * repeated string tokens = 1; * @return This builder for chaining. */ public Builder clearTokens() { tokens_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string tokens = 1; * @param value The bytes of the tokens to add. * @return This builder for chaining. */ public Builder addTokensBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTokensIsMutable(); tokens_.add(value); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList tokenLogprobs_ = emptyDoubleList(); private void ensureTokenLogprobsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tokenLogprobs_ = mutableCopy(tokenLogprobs_); bitField0_ |= 0x00000002; } } /** * repeated double token_logprobs = 2; * @return A list containing the tokenLogprobs. */ public java.util.List getTokenLogprobsList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(tokenLogprobs_) : tokenLogprobs_; } /** * repeated double token_logprobs = 2; * @return The count of tokenLogprobs. */ public int getTokenLogprobsCount() { return tokenLogprobs_.size(); } /** * repeated double token_logprobs = 2; * @param index The index of the element to return. * @return The tokenLogprobs at the given index. */ public double getTokenLogprobs(int index) { return tokenLogprobs_.getDouble(index); } /** * repeated double token_logprobs = 2; * @param index The index to set the value at. * @param value The tokenLogprobs to set. * @return This builder for chaining. */ public Builder setTokenLogprobs( int index, double value) { ensureTokenLogprobsIsMutable(); tokenLogprobs_.setDouble(index, value); onChanged(); return this; } /** * repeated double token_logprobs = 2; * @param value The tokenLogprobs to add. * @return This builder for chaining. */ public Builder addTokenLogprobs(double value) { ensureTokenLogprobsIsMutable(); tokenLogprobs_.addDouble(value); onChanged(); return this; } /** * repeated double token_logprobs = 2; * @param values The tokenLogprobs to add. * @return This builder for chaining. */ public Builder addAllTokenLogprobs( java.lang.Iterable values) { ensureTokenLogprobsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokenLogprobs_); onChanged(); return this; } /** * repeated double token_logprobs = 2; * @return This builder for chaining. */ public Builder clearTokenLogprobs() { tokenLogprobs_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.lang.Object reqId_ = ""; /** * string req_id = 3; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string req_id = 3; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string req_id = 3; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** * string req_id = 3; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** * string req_id = 3; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.LabelLogprobosValue) } // @@protoc_insertion_point(class_scope:api.LabelLogprobosValue) private static final com.volcengine.model.maas.api.Api.LabelLogprobosValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.LabelLogprobosValue(); } public static com.volcengine.model.maas.api.Api.LabelLogprobosValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LabelLogprobosValue 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.volcengine.model.maas.api.Api.LabelLogprobosValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClassificationReqOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ClassificationReq) com.google.protobuf.MessageOrBuilder { /** * .api.Model model = 1; * @return Whether the model field is set. */ boolean hasModel(); /** * .api.Model model = 1; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** * .api.Model model = 1; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); /** * string req_id = 2; * @return The reqId. */ java.lang.String getReqId(); /** * string req_id = 2; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** * string query = 3; * @return The query. */ java.lang.String getQuery(); /** * string query = 3; * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** * repeated string labels = 4; * @return A list containing the labels. */ java.util.List getLabelsList(); /** * repeated string labels = 4; * @return The count of labels. */ int getLabelsCount(); /** * repeated string labels = 4; * @param index The index of the element to return. * @return The labels at the given index. */ java.lang.String getLabels(int index); /** * repeated string labels = 4; * @param index The index of the value to return. * @return The bytes of the labels at the given index. */ com.google.protobuf.ByteString getLabelsBytes(int index); } /** * Protobuf type {@code api.ClassificationReq} */ public static final class ClassificationReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ClassificationReq) ClassificationReqOrBuilder { private static final long serialVersionUID = 0L; // Use ClassificationReq.newBuilder() to construct. private ClassificationReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClassificationReq() { reqId_ = ""; query_ = ""; labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClassificationReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ClassificationReq.class, com.volcengine.model.maas.api.Api.ClassificationReq.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.volcengine.model.maas.api.Api.Model model_; /** * .api.Model model = 1; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** * .api.Model model = 1; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** * .api.Model model = 1; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int REQ_ID_FIELD_NUMBER = 2; private volatile java.lang.Object reqId_; /** * string req_id = 2; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** * string req_id = 2; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_FIELD_NUMBER = 3; private volatile java.lang.Object query_; /** * string query = 3; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** * string query = 3; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList labels_; /** * repeated string labels = 4; * @return A list containing the labels. */ public com.google.protobuf.ProtocolStringList getLabelsList() { return labels_; } /** * repeated string labels = 4; * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** * repeated string labels = 4; * @param index The index of the element to return. * @return The labels at the given index. */ public java.lang.String getLabels(int index) { return labels_.get(index); } /** * repeated string labels = 4; * @param index The index of the value to return. * @return The bytes of the labels at the given index. */ public com.google.protobuf.ByteString getLabelsBytes(int index) { return labels_.getByteString(index); } 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 (model_ != null) { output.writeMessage(1, getModel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); } for (int i = 0; i < labels_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, labels_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); } { int dataSize = 0; for (int i = 0; i < labels_.size(); i++) { dataSize += computeStringSizeNoTag(labels_.getRaw(i)); } size += dataSize; size += 1 * getLabelsList().size(); } 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.volcengine.model.maas.api.Api.ClassificationReq)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.ClassificationReq other = (com.volcengine.model.maas.api.Api.ClassificationReq) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (!getReqId() .equals(other.getReqId())) return false; if (!getQuery() .equals(other.getQuery())) return false; if (!getLabelsList() .equals(other.getLabelsList())) 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 (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); if (getLabelsCount() > 0) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabelsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ClassificationReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ClassificationReq 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.volcengine.model.maas.api.Api.ClassificationReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ClassificationReq 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.volcengine.model.maas.api.Api.ClassificationReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ClassificationReq 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.volcengine.model.maas.api.Api.ClassificationReq 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; } /** * Protobuf type {@code api.ClassificationReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ClassificationReq) com.volcengine.model.maas.api.Api.ClassificationReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ClassificationReq.class, com.volcengine.model.maas.api.Api.ClassificationReq.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.ClassificationReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } reqId_ = ""; query_ = ""; labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationReq_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.ClassificationReq getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.ClassificationReq.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.ClassificationReq build() { com.volcengine.model.maas.api.Api.ClassificationReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.ClassificationReq buildPartial() { com.volcengine.model.maas.api.Api.ClassificationReq result = new com.volcengine.model.maas.api.Api.ClassificationReq(this); int from_bitField0_ = bitField0_; if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } result.reqId_ = reqId_; result.query_ = query_; if (((bitField0_ & 0x00000001) != 0)) { labels_ = labels_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.labels_ = labels_; 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 com.volcengine.model.maas.api.Api.ClassificationReq) { return mergeFrom((com.volcengine.model.maas.api.Api.ClassificationReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.ClassificationReq other) { if (other == com.volcengine.model.maas.api.Api.ClassificationReq.getDefaultInstance()) return this; if (other.hasModel()) { mergeModel(other.getModel()); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (!other.getQuery().isEmpty()) { query_ = other.query_; onChanged(); } if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { reqId_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { query_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureLabelsIsMutable(); labels_.add(s); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** * .api.Model model = 1; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** * .api.Model model = 1; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** * .api.Model model = 1; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** * .api.Model model = 1; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Model model = 1; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** * .api.Model model = 1; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** * .api.Model model = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private java.lang.Object reqId_ = ""; /** * string req_id = 2; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string req_id = 2; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string req_id = 2; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** * string req_id = 2; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** * string req_id = 2; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private java.lang.Object query_ = ""; /** * string query = 3; * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } else { return (java.lang.String) ref; } } /** * string query = 3; * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string query = 3; * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); return this; } /** * string query = 3; * @return This builder for chaining. */ public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** * string query = 3; * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new com.google.protobuf.LazyStringArrayList(labels_); bitField0_ |= 0x00000001; } } /** * repeated string labels = 4; * @return A list containing the labels. */ public com.google.protobuf.ProtocolStringList getLabelsList() { return labels_.getUnmodifiableView(); } /** * repeated string labels = 4; * @return The count of labels. */ public int getLabelsCount() { return labels_.size(); } /** * repeated string labels = 4; * @param index The index of the element to return. * @return The labels at the given index. */ public java.lang.String getLabels(int index) { return labels_.get(index); } /** * repeated string labels = 4; * @param index The index of the value to return. * @return The bytes of the labels at the given index. */ public com.google.protobuf.ByteString getLabelsBytes(int index) { return labels_.getByteString(index); } /** * repeated string labels = 4; * @param index The index to set the value at. * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); return this; } /** * repeated string labels = 4; * @param value The labels to add. * @return This builder for chaining. */ public Builder addLabels( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(value); onChanged(); return this; } /** * repeated string labels = 4; * @param values The labels to add. * @return This builder for chaining. */ public Builder addAllLabels( java.lang.Iterable values) { ensureLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labels_); onChanged(); return this; } /** * repeated string labels = 4; * @return This builder for chaining. */ public Builder clearLabels() { labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string labels = 4; * @param value The bytes of the labels to add. * @return This builder for chaining. */ public Builder addLabelsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLabelsIsMutable(); labels_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.ClassificationReq) } // @@protoc_insertion_point(class_scope:api.ClassificationReq) private static final com.volcengine.model.maas.api.Api.ClassificationReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.ClassificationReq(); } public static com.volcengine.model.maas.api.Api.ClassificationReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClassificationReq 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.volcengine.model.maas.api.Api.ClassificationReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClassificationRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ClassificationResp) com.google.protobuf.MessageOrBuilder { /** * string label = 1; * @return The label. */ java.lang.String getLabel(); /** * string label = 1; * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ int getLabelLogprobosCount(); /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ boolean containsLabelLogprobos( java.lang.String key); /** * Use {@link #getLabelLogprobosMap()} instead. */ @java.lang.Deprecated java.util.Map getLabelLogprobos(); /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ java.util.Map getLabelLogprobosMap(); /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ /* nullable */ com.volcengine.model.maas.api.Api.LabelLogprobosValue getLabelLogprobosOrDefault( java.lang.String key, /* nullable */ com.volcengine.model.maas.api.Api.LabelLogprobosValue defaultValue); /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ com.volcengine.model.maas.api.Api.LabelLogprobosValue getLabelLogprobosOrThrow( java.lang.String key); /** *
     * The tokens usage
     * 
* * .api.Usage usage = 3; * @return Whether the usage field is set. */ boolean hasUsage(); /** *
     * The tokens usage
     * 
* * .api.Usage usage = 3; * @return The usage. */ com.volcengine.model.maas.api.Api.Usage getUsage(); /** *
     * The tokens usage
     * 
* * .api.Usage usage = 3; */ com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder(); /** *
     * Unified request id
     * 
* * string req_id = 4; * @return The reqId. */ java.lang.String getReqId(); /** *
     * Unified request id
     * 
* * string req_id = 4; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 5; * @return Whether the error field is set. */ boolean hasError(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 5; * @return The error. */ com.volcengine.model.maas.api.Api.Error getError(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 5; */ com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code api.ClassificationResp} */ public static final class ClassificationResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ClassificationResp) ClassificationRespOrBuilder { private static final long serialVersionUID = 0L; // Use ClassificationResp.newBuilder() to construct. private ClassificationResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClassificationResp() { label_ = ""; reqId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClassificationResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationResp_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabelLogprobos(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ClassificationResp.class, com.volcengine.model.maas.api.Api.ClassificationResp.Builder.class); } public static final int LABEL_FIELD_NUMBER = 1; private volatile java.lang.Object label_; /** * string label = 1; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** * string label = 1; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABEL_LOGPROBOS_FIELD_NUMBER = 2; private static final class LabelLogprobosDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.volcengine.model.maas.api.Api.LabelLogprobosValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.volcengine.model.maas.api.Api.internal_static_api_ClassificationResp_LabelLogprobosEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.volcengine.model.maas.api.Api.LabelLogprobosValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.volcengine.model.maas.api.Api.LabelLogprobosValue> labelLogprobos_; private com.google.protobuf.MapField internalGetLabelLogprobos() { if (labelLogprobos_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelLogprobosDefaultEntryHolder.defaultEntry); } return labelLogprobos_; } public int getLabelLogprobosCount() { return internalGetLabelLogprobos().getMap().size(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public boolean containsLabelLogprobos( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabelLogprobos().getMap().containsKey(key); } /** * Use {@link #getLabelLogprobosMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabelLogprobos() { return getLabelLogprobosMap(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public java.util.Map getLabelLogprobosMap() { return internalGetLabelLogprobos().getMap(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue getLabelLogprobosOrDefault( java.lang.String key, com.volcengine.model.maas.api.Api.LabelLogprobosValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabelLogprobos().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue getLabelLogprobosOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabelLogprobos().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int USAGE_FIELD_NUMBER = 3; private com.volcengine.model.maas.api.Api.Usage usage_; /** *
     * The tokens usage
     * 
* * .api.Usage usage = 3; * @return Whether the usage field is set. */ @java.lang.Override public boolean hasUsage() { return usage_ != null; } /** *
     * The tokens usage
     * 
* * .api.Usage usage = 3; * @return The usage. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Usage getUsage() { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } /** *
     * The tokens usage
     * 
* * .api.Usage usage = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder() { return getUsage(); } public static final int REQ_ID_FIELD_NUMBER = 4; private volatile java.lang.Object reqId_; /** *
     * Unified request id
     * 
* * string req_id = 4; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** *
     * Unified request id
     * 
* * string req_id = 4; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 5; private com.volcengine.model.maas.api.Api.Error error_; /** *
     * Error if exists for the req
     * 
* * .api.Error error = 5; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return error_ != null; } /** *
     * Error if exists for the req
     * 
* * .api.Error error = 5; * @return The error. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Error getError() { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } /** *
     * Error if exists for the req
     * 
* * .api.Error error = 5; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { return getError(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabelLogprobos(), LabelLogprobosDefaultEntryHolder.defaultEntry, 2); if (usage_ != null) { output.writeMessage(3, getUsage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reqId_); } if (error_ != null) { output.writeMessage(5, getError()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); } for (java.util.Map.Entry entry : internalGetLabelLogprobos().getMap().entrySet()) { com.google.protobuf.MapEntry labelLogprobos__ = LabelLogprobosDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, labelLogprobos__); } if (usage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUsage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reqId_); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getError()); } 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.volcengine.model.maas.api.Api.ClassificationResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.ClassificationResp other = (com.volcengine.model.maas.api.Api.ClassificationResp) obj; if (!getLabel() .equals(other.getLabel())) return false; if (!internalGetLabelLogprobos().equals( other.internalGetLabelLogprobos())) return false; if (hasUsage() != other.hasUsage()) return false; if (hasUsage()) { if (!getUsage() .equals(other.getUsage())) return false; } if (!getReqId() .equals(other.getReqId())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError() .equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); if (!internalGetLabelLogprobos().getMap().isEmpty()) { hash = (37 * hash) + LABEL_LOGPROBOS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabelLogprobos().hashCode(); } if (hasUsage()) { hash = (37 * hash) + USAGE_FIELD_NUMBER; hash = (53 * hash) + getUsage().hashCode(); } hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ClassificationResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ClassificationResp 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.volcengine.model.maas.api.Api.ClassificationResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ClassificationResp 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.volcengine.model.maas.api.Api.ClassificationResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ClassificationResp 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.volcengine.model.maas.api.Api.ClassificationResp 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; } /** * Protobuf type {@code api.ClassificationResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ClassificationResp) com.volcengine.model.maas.api.Api.ClassificationRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationResp_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabelLogprobos(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableLabelLogprobos(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ClassificationResp.class, com.volcengine.model.maas.api.Api.ClassificationResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.ClassificationResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); label_ = ""; internalGetMutableLabelLogprobos().clear(); if (usageBuilder_ == null) { usage_ = null; } else { usage_ = null; usageBuilder_ = null; } reqId_ = ""; if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_ClassificationResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.ClassificationResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.ClassificationResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.ClassificationResp build() { com.volcengine.model.maas.api.Api.ClassificationResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.ClassificationResp buildPartial() { com.volcengine.model.maas.api.Api.ClassificationResp result = new com.volcengine.model.maas.api.Api.ClassificationResp(this); int from_bitField0_ = bitField0_; result.label_ = label_; result.labelLogprobos_ = internalGetLabelLogprobos(); result.labelLogprobos_.makeImmutable(); if (usageBuilder_ == null) { result.usage_ = usage_; } else { result.usage_ = usageBuilder_.build(); } result.reqId_ = reqId_; if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.ClassificationResp) { return mergeFrom((com.volcengine.model.maas.api.Api.ClassificationResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.ClassificationResp other) { if (other == com.volcengine.model.maas.api.Api.ClassificationResp.getDefaultInstance()) return this; if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); } internalGetMutableLabelLogprobos().mergeFrom( other.internalGetLabelLogprobos()); if (other.hasUsage()) { mergeUsage(other.getUsage()); } if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (other.hasError()) { mergeError(other.getError()); } 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: { label_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { com.google.protobuf.MapEntry labelLogprobos__ = input.readMessage( LabelLogprobosDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabelLogprobos().getMutableMap().put( labelLogprobos__.getKey(), labelLogprobos__.getValue()); break; } // case 18 case 26: { input.readMessage( getUsageFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { reqId_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { input.readMessage( getErrorFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object label_ = ""; /** * string label = 1; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * string label = 1; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string label = 1; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * string label = 1; * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * string label = 1; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.volcengine.model.maas.api.Api.LabelLogprobosValue> labelLogprobos_; private com.google.protobuf.MapField internalGetLabelLogprobos() { if (labelLogprobos_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelLogprobosDefaultEntryHolder.defaultEntry); } return labelLogprobos_; } private com.google.protobuf.MapField internalGetMutableLabelLogprobos() { onChanged();; if (labelLogprobos_ == null) { labelLogprobos_ = com.google.protobuf.MapField.newMapField( LabelLogprobosDefaultEntryHolder.defaultEntry); } if (!labelLogprobos_.isMutable()) { labelLogprobos_ = labelLogprobos_.copy(); } return labelLogprobos_; } public int getLabelLogprobosCount() { return internalGetLabelLogprobos().getMap().size(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public boolean containsLabelLogprobos( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabelLogprobos().getMap().containsKey(key); } /** * Use {@link #getLabelLogprobosMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabelLogprobos() { return getLabelLogprobosMap(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public java.util.Map getLabelLogprobosMap() { return internalGetLabelLogprobos().getMap(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue getLabelLogprobosOrDefault( java.lang.String key, com.volcengine.model.maas.api.Api.LabelLogprobosValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabelLogprobos().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.LabelLogprobosValue getLabelLogprobosOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabelLogprobos().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabelLogprobos() { internalGetMutableLabelLogprobos().getMutableMap() .clear(); return this; } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ public Builder removeLabelLogprobos( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabelLogprobos().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabelLogprobos() { return internalGetMutableLabelLogprobos().getMutableMap(); } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ public Builder putLabelLogprobos( java.lang.String key, com.volcengine.model.maas.api.Api.LabelLogprobosValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabelLogprobos().getMutableMap() .put(key, value); return this; } /** * map<string, .api.LabelLogprobosValue> label_logprobos = 2; */ public Builder putAllLabelLogprobos( java.util.Map values) { internalGetMutableLabelLogprobos().getMutableMap() .putAll(values); return this; } private com.volcengine.model.maas.api.Api.Usage usage_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder> usageBuilder_; /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; * @return Whether the usage field is set. */ public boolean hasUsage() { return usageBuilder_ != null || usage_ != null; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; * @return The usage. */ public com.volcengine.model.maas.api.Api.Usage getUsage() { if (usageBuilder_ == null) { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } else { return usageBuilder_.getMessage(); } } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ public Builder setUsage(com.volcengine.model.maas.api.Api.Usage value) { if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } usage_ = value; onChanged(); } else { usageBuilder_.setMessage(value); } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ public Builder setUsage( com.volcengine.model.maas.api.Api.Usage.Builder builderForValue) { if (usageBuilder_ == null) { usage_ = builderForValue.build(); onChanged(); } else { usageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ public Builder mergeUsage(com.volcengine.model.maas.api.Api.Usage value) { if (usageBuilder_ == null) { if (usage_ != null) { usage_ = com.volcengine.model.maas.api.Api.Usage.newBuilder(usage_).mergeFrom(value).buildPartial(); } else { usage_ = value; } onChanged(); } else { usageBuilder_.mergeFrom(value); } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ public Builder clearUsage() { if (usageBuilder_ == null) { usage_ = null; onChanged(); } else { usage_ = null; usageBuilder_ = null; } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ public com.volcengine.model.maas.api.Api.Usage.Builder getUsageBuilder() { onChanged(); return getUsageFieldBuilder().getBuilder(); } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ public com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder() { if (usageBuilder_ != null) { return usageBuilder_.getMessageOrBuilder(); } else { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder> getUsageFieldBuilder() { if (usageBuilder_ == null) { usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder>( getUsage(), getParentForChildren(), isClean()); usage_ = null; } return usageBuilder_; } private java.lang.Object reqId_ = ""; /** *
       * Unified request id
       * 
* * string req_id = 4; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 4; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 4; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 4; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 4; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private com.volcengine.model.maas.api.Api.Error error_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> errorBuilder_; /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; * @return The error. */ public com.volcengine.model.maas.api.Api.Error getError() { if (errorBuilder_ == null) { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ public Builder setError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ public Builder setError( com.volcengine.model.maas.api.Api.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ public Builder mergeError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = com.volcengine.model.maas.api.Api.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ public com.volcengine.model.maas.api.Api.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } @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:api.ClassificationResp) } // @@protoc_insertion_point(class_scope:api.ClassificationResp) private static final com.volcengine.model.maas.api.Api.ClassificationResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.ClassificationResp(); } public static com.volcengine.model.maas.api.Api.ClassificationResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClassificationResp 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.volcengine.model.maas.api.Api.ClassificationResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChatRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ChatResp) com.google.protobuf.MessageOrBuilder { /** *
     * Unified request id
     * 
* * string req_id = 1; * @return The reqId. */ java.lang.String getReqId(); /** *
     * Unified request id
     * 
* * string req_id = 1; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 2; * @return Whether the error field is set. */ boolean hasError(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 2; * @return The error. */ com.volcengine.model.maas.api.Api.Error getError(); /** *
     * Error if exists for the req
     * 
* * .api.Error error = 2; */ com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder(); /** *
     * The generated result
     * 
* * .api.Choice choice = 3; * @return Whether the choice field is set. */ boolean hasChoice(); /** *
     * The generated result
     * 
* * .api.Choice choice = 3; * @return The choice. */ com.volcengine.model.maas.api.Api.Choice getChoice(); /** *
     * The generated result
     * 
* * .api.Choice choice = 3; */ com.volcengine.model.maas.api.Api.ChoiceOrBuilder getChoiceOrBuilder(); /** *
     * The tokens usage
     * 
* * .api.Usage usage = 4; * @return Whether the usage field is set. */ boolean hasUsage(); /** *
     * The tokens usage
     * 
* * .api.Usage usage = 4; * @return The usage. */ com.volcengine.model.maas.api.Api.Usage getUsage(); /** *
     * The tokens usage
     * 
* * .api.Usage usage = 4; */ com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ int getExtraCount(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ boolean containsExtra( java.lang.String key); /** * Use {@link #getExtraMap()} instead. */ @java.lang.Deprecated java.util.Map getExtra(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ java.util.Map getExtraMap(); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ /* nullable */ java.lang.String getExtraOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ java.lang.String getExtraOrThrow( java.lang.String key); } /** * Protobuf type {@code api.ChatResp} */ public static final class ChatResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ChatResp) ChatRespOrBuilder { private static final long serialVersionUID = 0L; // Use ChatResp.newBuilder() to construct. private ChatResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChatResp() { reqId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChatResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatResp_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 100: return internalGetExtra(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ChatResp.class, com.volcengine.model.maas.api.Api.ChatResp.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private volatile java.lang.Object reqId_; /** *
     * Unified request id
     * 
* * string req_id = 1; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** *
     * Unified request id
     * 
* * string req_id = 1; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 2; private com.volcengine.model.maas.api.Api.Error error_; /** *
     * Error if exists for the req
     * 
* * .api.Error error = 2; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return error_ != null; } /** *
     * Error if exists for the req
     * 
* * .api.Error error = 2; * @return The error. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Error getError() { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } /** *
     * Error if exists for the req
     * 
* * .api.Error error = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int CHOICE_FIELD_NUMBER = 3; private com.volcengine.model.maas.api.Api.Choice choice_; /** *
     * The generated result
     * 
* * .api.Choice choice = 3; * @return Whether the choice field is set. */ @java.lang.Override public boolean hasChoice() { return choice_ != null; } /** *
     * The generated result
     * 
* * .api.Choice choice = 3; * @return The choice. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Choice getChoice() { return choice_ == null ? com.volcengine.model.maas.api.Api.Choice.getDefaultInstance() : choice_; } /** *
     * The generated result
     * 
* * .api.Choice choice = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ChoiceOrBuilder getChoiceOrBuilder() { return getChoice(); } public static final int USAGE_FIELD_NUMBER = 4; private com.volcengine.model.maas.api.Api.Usage usage_; /** *
     * The tokens usage
     * 
* * .api.Usage usage = 4; * @return Whether the usage field is set. */ @java.lang.Override public boolean hasUsage() { return usage_ != null; } /** *
     * The tokens usage
     * 
* * .api.Usage usage = 4; * @return The usage. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Usage getUsage() { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } /** *
     * The tokens usage
     * 
* * .api.Usage usage = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder() { return getUsage(); } public static final int EXTRA_FIELD_NUMBER = 100; private static final class ExtraDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.volcengine.model.maas.api.Api.internal_static_api_ChatResp_ExtraEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extra_; private com.google.protobuf.MapField internalGetExtra() { if (extra_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtraDefaultEntryHolder.defaultEntry); } return extra_; } public int getExtraCount() { return internalGetExtra().getMap().size(); } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public boolean containsExtra( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtra().getMap().containsKey(key); } /** * Use {@link #getExtraMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtra() { return getExtraMap(); } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.util.Map getExtraMap() { return internalGetExtra().getMap(); } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * extra info
     * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reqId_); } if (error_ != null) { output.writeMessage(2, getError()); } if (choice_ != null) { output.writeMessage(3, getChoice()); } if (usage_ != null) { output.writeMessage(4, getUsage()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtra(), ExtraDefaultEntryHolder.defaultEntry, 100); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reqId_); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (choice_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getChoice()); } if (usage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUsage()); } for (java.util.Map.Entry entry : internalGetExtra().getMap().entrySet()) { com.google.protobuf.MapEntry extra__ = ExtraDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(100, extra__); } 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.volcengine.model.maas.api.Api.ChatResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.ChatResp other = (com.volcengine.model.maas.api.Api.ChatResp) obj; if (!getReqId() .equals(other.getReqId())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError() .equals(other.getError())) return false; } if (hasChoice() != other.hasChoice()) return false; if (hasChoice()) { if (!getChoice() .equals(other.getChoice())) return false; } if (hasUsage() != other.hasUsage()) return false; if (hasUsage()) { if (!getUsage() .equals(other.getUsage())) return false; } if (!internalGetExtra().equals( other.internalGetExtra())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (hasChoice()) { hash = (37 * hash) + CHOICE_FIELD_NUMBER; hash = (53 * hash) + getChoice().hashCode(); } if (hasUsage()) { hash = (37 * hash) + USAGE_FIELD_NUMBER; hash = (53 * hash) + getUsage().hashCode(); } if (!internalGetExtra().getMap().isEmpty()) { hash = (37 * hash) + EXTRA_FIELD_NUMBER; hash = (53 * hash) + internalGetExtra().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ChatResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ChatResp 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.volcengine.model.maas.api.Api.ChatResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ChatResp 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.volcengine.model.maas.api.Api.ChatResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ChatResp 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.volcengine.model.maas.api.Api.ChatResp 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; } /** * Protobuf type {@code api.ChatResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ChatResp) com.volcengine.model.maas.api.Api.ChatRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatResp_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 100: return internalGetExtra(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 100: return internalGetMutableExtra(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ChatResp.class, com.volcengine.model.maas.api.Api.ChatResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.ChatResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); reqId_ = ""; if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } if (choiceBuilder_ == null) { choice_ = null; } else { choice_ = null; choiceBuilder_ = null; } if (usageBuilder_ == null) { usage_ = null; } else { usage_ = null; usageBuilder_ = null; } internalGetMutableExtra().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_ChatResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.ChatResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.ChatResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.ChatResp build() { com.volcengine.model.maas.api.Api.ChatResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.ChatResp buildPartial() { com.volcengine.model.maas.api.Api.ChatResp result = new com.volcengine.model.maas.api.Api.ChatResp(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (choiceBuilder_ == null) { result.choice_ = choice_; } else { result.choice_ = choiceBuilder_.build(); } if (usageBuilder_ == null) { result.usage_ = usage_; } else { result.usage_ = usageBuilder_.build(); } result.extra_ = internalGetExtra(); result.extra_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.ChatResp) { return mergeFrom((com.volcengine.model.maas.api.Api.ChatResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.ChatResp other) { if (other == com.volcengine.model.maas.api.Api.ChatResp.getDefaultInstance()) return this; if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (other.hasError()) { mergeError(other.getError()); } if (other.hasChoice()) { mergeChoice(other.getChoice()); } if (other.hasUsage()) { mergeUsage(other.getUsage()); } internalGetMutableExtra().mergeFrom( other.internalGetExtra()); 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: { reqId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getErrorFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { input.readMessage( getChoiceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { input.readMessage( getUsageFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 802: { com.google.protobuf.MapEntry extra__ = input.readMessage( ExtraDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtra().getMutableMap().put( extra__.getKey(), extra__.getValue()); break; } // case 802 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object reqId_ = ""; /** *
       * Unified request id
       * 
* * string req_id = 1; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 1; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unified request id
       * 
* * string req_id = 1; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** *
       * Unified request id
       * 
* * string req_id = 1; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private com.volcengine.model.maas.api.Api.Error error_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> errorBuilder_; /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; * @return The error. */ public com.volcengine.model.maas.api.Api.Error getError() { if (errorBuilder_ == null) { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ public Builder setError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ public Builder setError( com.volcengine.model.maas.api.Api.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ public Builder mergeError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = com.volcengine.model.maas.api.Api.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ public com.volcengine.model.maas.api.Api.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } } /** *
       * Error if exists for the req
       * 
* * .api.Error error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.volcengine.model.maas.api.Api.Choice choice_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Choice, com.volcengine.model.maas.api.Api.Choice.Builder, com.volcengine.model.maas.api.Api.ChoiceOrBuilder> choiceBuilder_; /** *
       * The generated result
       * 
* * .api.Choice choice = 3; * @return Whether the choice field is set. */ public boolean hasChoice() { return choiceBuilder_ != null || choice_ != null; } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; * @return The choice. */ public com.volcengine.model.maas.api.Api.Choice getChoice() { if (choiceBuilder_ == null) { return choice_ == null ? com.volcengine.model.maas.api.Api.Choice.getDefaultInstance() : choice_; } else { return choiceBuilder_.getMessage(); } } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ public Builder setChoice(com.volcengine.model.maas.api.Api.Choice value) { if (choiceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } choice_ = value; onChanged(); } else { choiceBuilder_.setMessage(value); } return this; } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ public Builder setChoice( com.volcengine.model.maas.api.Api.Choice.Builder builderForValue) { if (choiceBuilder_ == null) { choice_ = builderForValue.build(); onChanged(); } else { choiceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ public Builder mergeChoice(com.volcengine.model.maas.api.Api.Choice value) { if (choiceBuilder_ == null) { if (choice_ != null) { choice_ = com.volcengine.model.maas.api.Api.Choice.newBuilder(choice_).mergeFrom(value).buildPartial(); } else { choice_ = value; } onChanged(); } else { choiceBuilder_.mergeFrom(value); } return this; } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ public Builder clearChoice() { if (choiceBuilder_ == null) { choice_ = null; onChanged(); } else { choice_ = null; choiceBuilder_ = null; } return this; } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ public com.volcengine.model.maas.api.Api.Choice.Builder getChoiceBuilder() { onChanged(); return getChoiceFieldBuilder().getBuilder(); } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ public com.volcengine.model.maas.api.Api.ChoiceOrBuilder getChoiceOrBuilder() { if (choiceBuilder_ != null) { return choiceBuilder_.getMessageOrBuilder(); } else { return choice_ == null ? com.volcengine.model.maas.api.Api.Choice.getDefaultInstance() : choice_; } } /** *
       * The generated result
       * 
* * .api.Choice choice = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Choice, com.volcengine.model.maas.api.Api.Choice.Builder, com.volcengine.model.maas.api.Api.ChoiceOrBuilder> getChoiceFieldBuilder() { if (choiceBuilder_ == null) { choiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Choice, com.volcengine.model.maas.api.Api.Choice.Builder, com.volcengine.model.maas.api.Api.ChoiceOrBuilder>( getChoice(), getParentForChildren(), isClean()); choice_ = null; } return choiceBuilder_; } private com.volcengine.model.maas.api.Api.Usage usage_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder> usageBuilder_; /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; * @return Whether the usage field is set. */ public boolean hasUsage() { return usageBuilder_ != null || usage_ != null; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; * @return The usage. */ public com.volcengine.model.maas.api.Api.Usage getUsage() { if (usageBuilder_ == null) { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } else { return usageBuilder_.getMessage(); } } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ public Builder setUsage(com.volcengine.model.maas.api.Api.Usage value) { if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } usage_ = value; onChanged(); } else { usageBuilder_.setMessage(value); } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ public Builder setUsage( com.volcengine.model.maas.api.Api.Usage.Builder builderForValue) { if (usageBuilder_ == null) { usage_ = builderForValue.build(); onChanged(); } else { usageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ public Builder mergeUsage(com.volcengine.model.maas.api.Api.Usage value) { if (usageBuilder_ == null) { if (usage_ != null) { usage_ = com.volcengine.model.maas.api.Api.Usage.newBuilder(usage_).mergeFrom(value).buildPartial(); } else { usage_ = value; } onChanged(); } else { usageBuilder_.mergeFrom(value); } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ public Builder clearUsage() { if (usageBuilder_ == null) { usage_ = null; onChanged(); } else { usage_ = null; usageBuilder_ = null; } return this; } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ public com.volcengine.model.maas.api.Api.Usage.Builder getUsageBuilder() { onChanged(); return getUsageFieldBuilder().getBuilder(); } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ public com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder() { if (usageBuilder_ != null) { return usageBuilder_.getMessageOrBuilder(); } else { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } } /** *
       * The tokens usage
       * 
* * .api.Usage usage = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder> getUsageFieldBuilder() { if (usageBuilder_ == null) { usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder>( getUsage(), getParentForChildren(), isClean()); usage_ = null; } return usageBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extra_; private com.google.protobuf.MapField internalGetExtra() { if (extra_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtraDefaultEntryHolder.defaultEntry); } return extra_; } private com.google.protobuf.MapField internalGetMutableExtra() { onChanged();; if (extra_ == null) { extra_ = com.google.protobuf.MapField.newMapField( ExtraDefaultEntryHolder.defaultEntry); } if (!extra_.isMutable()) { extra_ = extra_.copy(); } return extra_; } public int getExtraCount() { return internalGetExtra().getMap().size(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public boolean containsExtra( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtra().getMap().containsKey(key); } /** * Use {@link #getExtraMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtra() { return getExtraMap(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.util.Map getExtraMap() { return internalGetExtra().getMap(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ @java.lang.Override public java.lang.String getExtraOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtra().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtra() { internalGetMutableExtra().getMutableMap() .clear(); return this; } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ public Builder removeExtra( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtra().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtra() { return internalGetMutableExtra().getMutableMap(); } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ public Builder putExtra( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtra().getMutableMap() .put(key, value); return this; } /** *
       * extra info
       * 
* * map<string, string> extra = 100; */ public Builder putAllExtra( java.util.Map values) { internalGetMutableExtra().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.ChatResp) } // @@protoc_insertion_point(class_scope:api.ChatResp) private static final com.volcengine.model.maas.api.Api.ChatResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.ChatResp(); } public static com.volcengine.model.maas.api.Api.ChatResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChatResp 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.volcengine.model.maas.api.Api.ChatResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CertReqOrBuilder extends // @@protoc_insertion_point(interface_extends:api.CertReq) com.google.protobuf.MessageOrBuilder { /** * .api.Model model = 1; * @return Whether the model field is set. */ boolean hasModel(); /** * .api.Model model = 1; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** * .api.Model model = 1; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); } /** * Protobuf type {@code api.CertReq} */ public static final class CertReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.CertReq) CertReqOrBuilder { private static final long serialVersionUID = 0L; // Use CertReq.newBuilder() to construct. private CertReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CertReq() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CertReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_CertReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_CertReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.CertReq.class, com.volcengine.model.maas.api.Api.CertReq.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.volcengine.model.maas.api.Api.Model model_; /** * .api.Model model = 1; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** * .api.Model model = 1; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** * .api.Model model = 1; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } 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 (model_ != null) { output.writeMessage(1, getModel()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModel()); } 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.volcengine.model.maas.api.Api.CertReq)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.CertReq other = (com.volcengine.model.maas.api.Api.CertReq) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) 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 (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.CertReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.CertReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.CertReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.CertReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.CertReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.CertReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.CertReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.CertReq 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.volcengine.model.maas.api.Api.CertReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.CertReq 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.volcengine.model.maas.api.Api.CertReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.CertReq 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.volcengine.model.maas.api.Api.CertReq 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; } /** * Protobuf type {@code api.CertReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.CertReq) com.volcengine.model.maas.api.Api.CertReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_CertReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_CertReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.CertReq.class, com.volcengine.model.maas.api.Api.CertReq.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.CertReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_CertReq_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.CertReq getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.CertReq.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.CertReq build() { com.volcengine.model.maas.api.Api.CertReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.CertReq buildPartial() { com.volcengine.model.maas.api.Api.CertReq result = new com.volcengine.model.maas.api.Api.CertReq(this); if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.CertReq) { return mergeFrom((com.volcengine.model.maas.api.Api.CertReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.CertReq other) { if (other == com.volcengine.model.maas.api.Api.CertReq.getDefaultInstance()) return this; if (other.hasModel()) { mergeModel(other.getModel()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 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 com.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** * .api.Model model = 1; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** * .api.Model model = 1; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** * .api.Model model = 1; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** * .api.Model model = 1; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Model model = 1; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** * .api.Model model = 1; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** * .api.Model model = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } @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:api.CertReq) } // @@protoc_insertion_point(class_scope:api.CertReq) private static final com.volcengine.model.maas.api.Api.CertReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.CertReq(); } public static com.volcengine.model.maas.api.Api.CertReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CertReq 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.volcengine.model.maas.api.Api.CertReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CertRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.CertResp) com.google.protobuf.MessageOrBuilder { /** * .api.Model model = 1; * @return Whether the model field is set. */ boolean hasModel(); /** * .api.Model model = 1; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** * .api.Model model = 1; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); /** * string cert = 2; * @return The cert. */ java.lang.String getCert(); /** * string cert = 2; * @return The bytes for cert. */ com.google.protobuf.ByteString getCertBytes(); } /** * Protobuf type {@code api.CertResp} */ public static final class CertResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.CertResp) CertRespOrBuilder { private static final long serialVersionUID = 0L; // Use CertResp.newBuilder() to construct. private CertResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CertResp() { cert_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CertResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_CertResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_CertResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.CertResp.class, com.volcengine.model.maas.api.Api.CertResp.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private com.volcengine.model.maas.api.Api.Model model_; /** * .api.Model model = 1; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** * .api.Model model = 1; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** * .api.Model model = 1; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int CERT_FIELD_NUMBER = 2; private volatile java.lang.Object cert_; /** * string cert = 2; * @return The cert. */ @java.lang.Override public java.lang.String getCert() { java.lang.Object ref = cert_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; } } /** * string cert = 2; * @return The bytes for cert. */ @java.lang.Override public com.google.protobuf.ByteString getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cert_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (model_ != null) { output.writeMessage(1, getModel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cert_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cert_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getModel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cert_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cert_); } 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.volcengine.model.maas.api.Api.CertResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.CertResp other = (com.volcengine.model.maas.api.Api.CertResp) obj; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (!getCert() .equals(other.getCert())) 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 (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } hash = (37 * hash) + CERT_FIELD_NUMBER; hash = (53 * hash) + getCert().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.CertResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.CertResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.CertResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.CertResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.CertResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.CertResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.CertResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.CertResp 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.volcengine.model.maas.api.Api.CertResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.CertResp 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.volcengine.model.maas.api.Api.CertResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.CertResp 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.volcengine.model.maas.api.Api.CertResp 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; } /** * Protobuf type {@code api.CertResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.CertResp) com.volcengine.model.maas.api.Api.CertRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_CertResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_CertResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.CertResp.class, com.volcengine.model.maas.api.Api.CertResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.CertResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } cert_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_CertResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.CertResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.CertResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.CertResp build() { com.volcengine.model.maas.api.Api.CertResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.CertResp buildPartial() { com.volcengine.model.maas.api.Api.CertResp result = new com.volcengine.model.maas.api.Api.CertResp(this); if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } result.cert_ = cert_; 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 com.volcengine.model.maas.api.Api.CertResp) { return mergeFrom((com.volcengine.model.maas.api.Api.CertResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.CertResp other) { if (other == com.volcengine.model.maas.api.Api.CertResp.getDefaultInstance()) return this; if (other.hasModel()) { mergeModel(other.getModel()); } if (!other.getCert().isEmpty()) { cert_ = other.cert_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { cert_ = input.readStringRequireUtf8(); 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 com.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** * .api.Model model = 1; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** * .api.Model model = 1; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** * .api.Model model = 1; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** * .api.Model model = 1; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Model model = 1; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** * .api.Model model = 1; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** * .api.Model model = 1; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** * .api.Model model = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private java.lang.Object cert_ = ""; /** * string cert = 2; * @return The cert. */ public java.lang.String getCert() { java.lang.Object ref = cert_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cert_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cert = 2; * @return The bytes for cert. */ public com.google.protobuf.ByteString getCertBytes() { java.lang.Object ref = cert_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cert_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cert = 2; * @param value The cert to set. * @return This builder for chaining. */ public Builder setCert( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cert_ = value; onChanged(); return this; } /** * string cert = 2; * @return This builder for chaining. */ public Builder clearCert() { cert_ = getDefaultInstance().getCert(); onChanged(); return this; } /** * string cert = 2; * @param value The bytes for cert to set. * @return This builder for chaining. */ public Builder setCertBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cert_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.CertResp) } // @@protoc_insertion_point(class_scope:api.CertResp) private static final com.volcengine.model.maas.api.Api.CertResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.CertResp(); } public static com.volcengine.model.maas.api.Api.CertResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CertResp 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.volcengine.model.maas.api.Api.CertResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbeddingsReqOrBuilder extends // @@protoc_insertion_point(interface_extends:api.EmbeddingsReq) com.google.protobuf.MessageOrBuilder { /** * string req_id = 1; * @return The reqId. */ java.lang.String getReqId(); /** * string req_id = 1; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** * repeated string input = 2; * @return A list containing the input. */ java.util.List getInputList(); /** * repeated string input = 2; * @return The count of input. */ int getInputCount(); /** * repeated string input = 2; * @param index The index of the element to return. * @return The input at the given index. */ java.lang.String getInput(int index); /** * repeated string input = 2; * @param index The index of the value to return. * @return The bytes of the input at the given index. */ com.google.protobuf.ByteString getInputBytes(int index); /** * .api.Model model = 3; * @return Whether the model field is set. */ boolean hasModel(); /** * .api.Model model = 3; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** * .api.Model model = 3; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); /** * optional string encoding_format = 4; * @return Whether the encodingFormat field is set. */ boolean hasEncodingFormat(); /** * optional string encoding_format = 4; * @return The encodingFormat. */ java.lang.String getEncodingFormat(); /** * optional string encoding_format = 4; * @return The bytes for encodingFormat. */ com.google.protobuf.ByteString getEncodingFormatBytes(); /** * optional string user = 5; * @return Whether the user field is set. */ boolean hasUser(); /** * optional string user = 5; * @return The user. */ java.lang.String getUser(); /** * optional string user = 5; * @return The bytes for user. */ com.google.protobuf.ByteString getUserBytes(); } /** * Protobuf type {@code api.EmbeddingsReq} */ public static final class EmbeddingsReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.EmbeddingsReq) EmbeddingsReqOrBuilder { private static final long serialVersionUID = 0L; // Use EmbeddingsReq.newBuilder() to construct. private EmbeddingsReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmbeddingsReq() { reqId_ = ""; input_ = com.google.protobuf.LazyStringArrayList.EMPTY; encodingFormat_ = ""; user_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmbeddingsReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.EmbeddingsReq.class, com.volcengine.model.maas.api.Api.EmbeddingsReq.Builder.class); } private int bitField0_; public static final int REQ_ID_FIELD_NUMBER = 1; private volatile java.lang.Object reqId_; /** * string req_id = 1; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** * string req_id = 1; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INPUT_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList input_; /** * repeated string input = 2; * @return A list containing the input. */ public com.google.protobuf.ProtocolStringList getInputList() { return input_; } /** * repeated string input = 2; * @return The count of input. */ public int getInputCount() { return input_.size(); } /** * repeated string input = 2; * @param index The index of the element to return. * @return The input at the given index. */ public java.lang.String getInput(int index) { return input_.get(index); } /** * repeated string input = 2; * @param index The index of the value to return. * @return The bytes of the input at the given index. */ public com.google.protobuf.ByteString getInputBytes(int index) { return input_.getByteString(index); } public static final int MODEL_FIELD_NUMBER = 3; private com.volcengine.model.maas.api.Api.Model model_; /** * .api.Model model = 3; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** * .api.Model model = 3; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** * .api.Model model = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int ENCODING_FORMAT_FIELD_NUMBER = 4; private volatile java.lang.Object encodingFormat_; /** * optional string encoding_format = 4; * @return Whether the encodingFormat field is set. */ @java.lang.Override public boolean hasEncodingFormat() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string encoding_format = 4; * @return The encodingFormat. */ @java.lang.Override public java.lang.String getEncodingFormat() { java.lang.Object ref = encodingFormat_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encodingFormat_ = s; return s; } } /** * optional string encoding_format = 4; * @return The bytes for encodingFormat. */ @java.lang.Override public com.google.protobuf.ByteString getEncodingFormatBytes() { java.lang.Object ref = encodingFormat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encodingFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 5; private volatile java.lang.Object user_; /** * optional string user = 5; * @return Whether the user field is set. */ @java.lang.Override public boolean hasUser() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string user = 5; * @return The user. */ @java.lang.Override public java.lang.String getUser() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } } /** * optional string user = 5; * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reqId_); } for (int i = 0; i < input_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_.getRaw(i)); } if (model_ != null) { output.writeMessage(3, getModel()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, encodingFormat_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reqId_); } { int dataSize = 0; for (int i = 0; i < input_.size(); i++) { dataSize += computeStringSizeNoTag(input_.getRaw(i)); } size += dataSize; size += 1 * getInputList().size(); } if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getModel()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, encodingFormat_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); } 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.volcengine.model.maas.api.Api.EmbeddingsReq)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.EmbeddingsReq other = (com.volcengine.model.maas.api.Api.EmbeddingsReq) obj; if (!getReqId() .equals(other.getReqId())) return false; if (!getInputList() .equals(other.getInputList())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (hasEncodingFormat() != other.hasEncodingFormat()) return false; if (hasEncodingFormat()) { if (!getEncodingFormat() .equals(other.getEncodingFormat())) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { if (!getUser() .equals(other.getUser())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); if (getInputCount() > 0) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInputList().hashCode(); } if (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } if (hasEncodingFormat()) { hash = (37 * hash) + ENCODING_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getEncodingFormat().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq 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.volcengine.model.maas.api.Api.EmbeddingsReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq 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.volcengine.model.maas.api.Api.EmbeddingsReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq 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.volcengine.model.maas.api.Api.EmbeddingsReq 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; } /** * Protobuf type {@code api.EmbeddingsReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.EmbeddingsReq) com.volcengine.model.maas.api.Api.EmbeddingsReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.EmbeddingsReq.class, com.volcengine.model.maas.api.Api.EmbeddingsReq.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.EmbeddingsReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); reqId_ = ""; input_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } encodingFormat_ = ""; bitField0_ = (bitField0_ & ~0x00000002); user_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsReq_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingsReq getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.EmbeddingsReq.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingsReq build() { com.volcengine.model.maas.api.Api.EmbeddingsReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingsReq buildPartial() { com.volcengine.model.maas.api.Api.EmbeddingsReq result = new com.volcengine.model.maas.api.Api.EmbeddingsReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.reqId_ = reqId_; if (((bitField0_ & 0x00000001) != 0)) { input_ = input_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.input_ = input_; if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000001; } result.encodingFormat_ = encodingFormat_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.user_ = user_; result.bitField0_ = to_bitField0_; 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 com.volcengine.model.maas.api.Api.EmbeddingsReq) { return mergeFrom((com.volcengine.model.maas.api.Api.EmbeddingsReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.EmbeddingsReq other) { if (other == com.volcengine.model.maas.api.Api.EmbeddingsReq.getDefaultInstance()) return this; if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (!other.input_.isEmpty()) { if (input_.isEmpty()) { input_ = other.input_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInputIsMutable(); input_.addAll(other.input_); } onChanged(); } if (other.hasModel()) { mergeModel(other.getModel()); } if (other.hasEncodingFormat()) { bitField0_ |= 0x00000002; encodingFormat_ = other.encodingFormat_; onChanged(); } if (other.hasUser()) { bitField0_ |= 0x00000004; user_ = other.user_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { reqId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureInputIsMutable(); input_.add(s); break; } // case 18 case 26: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { encodingFormat_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 34 case 42: { user_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object reqId_ = ""; /** * string req_id = 1; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string req_id = 1; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string req_id = 1; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** * string req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** * string req_id = 1; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList input_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInputIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { input_ = new com.google.protobuf.LazyStringArrayList(input_); bitField0_ |= 0x00000001; } } /** * repeated string input = 2; * @return A list containing the input. */ public com.google.protobuf.ProtocolStringList getInputList() { return input_.getUnmodifiableView(); } /** * repeated string input = 2; * @return The count of input. */ public int getInputCount() { return input_.size(); } /** * repeated string input = 2; * @param index The index of the element to return. * @return The input at the given index. */ public java.lang.String getInput(int index) { return input_.get(index); } /** * repeated string input = 2; * @param index The index of the value to return. * @return The bytes of the input at the given index. */ public com.google.protobuf.ByteString getInputBytes(int index) { return input_.getByteString(index); } /** * repeated string input = 2; * @param index The index to set the value at. * @param value The input to set. * @return This builder for chaining. */ public Builder setInput( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.set(index, value); onChanged(); return this; } /** * repeated string input = 2; * @param value The input to add. * @return This builder for chaining. */ public Builder addInput( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInputIsMutable(); input_.add(value); onChanged(); return this; } /** * repeated string input = 2; * @param values The input to add. * @return This builder for chaining. */ public Builder addAllInput( java.lang.Iterable values) { ensureInputIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, input_); onChanged(); return this; } /** * repeated string input = 2; * @return This builder for chaining. */ public Builder clearInput() { input_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string input = 2; * @param value The bytes of the input to add. * @return This builder for chaining. */ public Builder addInputBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInputIsMutable(); input_.add(value); onChanged(); return this; } private com.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** * .api.Model model = 3; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** * .api.Model model = 3; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** * .api.Model model = 3; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** * .api.Model model = 3; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Model model = 3; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** * .api.Model model = 3; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** * .api.Model model = 3; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** * .api.Model model = 3; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** * .api.Model model = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private java.lang.Object encodingFormat_ = ""; /** * optional string encoding_format = 4; * @return Whether the encodingFormat field is set. */ public boolean hasEncodingFormat() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string encoding_format = 4; * @return The encodingFormat. */ public java.lang.String getEncodingFormat() { java.lang.Object ref = encodingFormat_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encodingFormat_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string encoding_format = 4; * @return The bytes for encodingFormat. */ public com.google.protobuf.ByteString getEncodingFormatBytes() { java.lang.Object ref = encodingFormat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encodingFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string encoding_format = 4; * @param value The encodingFormat to set. * @return This builder for chaining. */ public Builder setEncodingFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; encodingFormat_ = value; onChanged(); return this; } /** * optional string encoding_format = 4; * @return This builder for chaining. */ public Builder clearEncodingFormat() { bitField0_ = (bitField0_ & ~0x00000002); encodingFormat_ = getDefaultInstance().getEncodingFormat(); onChanged(); return this; } /** * optional string encoding_format = 4; * @param value The bytes for encodingFormat to set. * @return This builder for chaining. */ public Builder setEncodingFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; encodingFormat_ = value; onChanged(); return this; } private java.lang.Object user_ = ""; /** * optional string user = 5; * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string user = 5; * @return The user. */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string user = 5; * @return The bytes for user. */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string user = 5; * @param value The user to set. * @return This builder for chaining. */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } /** * optional string user = 5; * @return This builder for chaining. */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000004); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * optional string user = 5; * @param value The bytes for user to set. * @return This builder for chaining. */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.EmbeddingsReq) } // @@protoc_insertion_point(class_scope:api.EmbeddingsReq) private static final com.volcengine.model.maas.api.Api.EmbeddingsReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.EmbeddingsReq(); } public static com.volcengine.model.maas.api.Api.EmbeddingsReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmbeddingsReq 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.volcengine.model.maas.api.Api.EmbeddingsReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbeddingOrBuilder extends // @@protoc_insertion_point(interface_extends:api.Embedding) com.google.protobuf.MessageOrBuilder { /** * int64 index = 1; * @return The index. */ long getIndex(); /** * repeated double embedding = 2; * @return A list containing the embedding. */ java.util.List getEmbeddingList(); /** * repeated double embedding = 2; * @return The count of embedding. */ int getEmbeddingCount(); /** * repeated double embedding = 2; * @param index The index of the element to return. * @return The embedding at the given index. */ double getEmbedding(int index); /** * string object = 3; * @return The object. */ java.lang.String getObject(); /** * string object = 3; * @return The bytes for object. */ com.google.protobuf.ByteString getObjectBytes(); } /** * Protobuf type {@code api.Embedding} */ public static final class Embedding extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.Embedding) EmbeddingOrBuilder { private static final long serialVersionUID = 0L; // Use Embedding.newBuilder() to construct. private Embedding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Embedding() { embedding_ = emptyDoubleList(); object_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Embedding(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Embedding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Embedding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Embedding.class, com.volcengine.model.maas.api.Api.Embedding.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** * int64 index = 1; * @return The index. */ @java.lang.Override public long getIndex() { return index_; } public static final int EMBEDDING_FIELD_NUMBER = 2; private com.google.protobuf.Internal.DoubleList embedding_; /** * repeated double embedding = 2; * @return A list containing the embedding. */ @java.lang.Override public java.util.List getEmbeddingList() { return embedding_; } /** * repeated double embedding = 2; * @return The count of embedding. */ public int getEmbeddingCount() { return embedding_.size(); } /** * repeated double embedding = 2; * @param index The index of the element to return. * @return The embedding at the given index. */ public double getEmbedding(int index) { return embedding_.getDouble(index); } private int embeddingMemoizedSerializedSize = -1; public static final int OBJECT_FIELD_NUMBER = 3; private volatile java.lang.Object object_; /** * string object = 3; * @return The object. */ @java.lang.Override public java.lang.String getObject() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** * string object = 3; * @return The bytes for object. */ @java.lang.Override public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (index_ != 0L) { output.writeInt64(1, index_); } if (getEmbeddingList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(embeddingMemoizedSerializedSize); } for (int i = 0; i < embedding_.size(); i++) { output.writeDoubleNoTag(embedding_.getDouble(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, object_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, index_); } { int dataSize = 0; dataSize = 8 * getEmbeddingList().size(); size += dataSize; if (!getEmbeddingList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } embeddingMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, object_); } 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.volcengine.model.maas.api.Api.Embedding)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.Embedding other = (com.volcengine.model.maas.api.Api.Embedding) obj; if (getIndex() != other.getIndex()) return false; if (!getEmbeddingList() .equals(other.getEmbeddingList())) return false; if (!getObject() .equals(other.getObject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); if (getEmbeddingCount() > 0) { hash = (37 * hash) + EMBEDDING_FIELD_NUMBER; hash = (53 * hash) + getEmbeddingList().hashCode(); } hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.Embedding parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Embedding parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Embedding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Embedding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Embedding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.Embedding parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.Embedding parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Embedding 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.volcengine.model.maas.api.Api.Embedding parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Embedding 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.volcengine.model.maas.api.Api.Embedding parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.Embedding 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.volcengine.model.maas.api.Api.Embedding 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; } /** * Protobuf type {@code api.Embedding} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.Embedding) com.volcengine.model.maas.api.Api.EmbeddingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_Embedding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_Embedding_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.Embedding.class, com.volcengine.model.maas.api.Api.Embedding.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.Embedding.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); index_ = 0L; embedding_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); object_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_Embedding_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.Embedding getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.Embedding.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.Embedding build() { com.volcengine.model.maas.api.Api.Embedding result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.Embedding buildPartial() { com.volcengine.model.maas.api.Api.Embedding result = new com.volcengine.model.maas.api.Api.Embedding(this); int from_bitField0_ = bitField0_; result.index_ = index_; if (((bitField0_ & 0x00000001) != 0)) { embedding_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.embedding_ = embedding_; result.object_ = object_; 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 com.volcengine.model.maas.api.Api.Embedding) { return mergeFrom((com.volcengine.model.maas.api.Api.Embedding)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.Embedding other) { if (other == com.volcengine.model.maas.api.Api.Embedding.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (!other.embedding_.isEmpty()) { if (embedding_.isEmpty()) { embedding_ = other.embedding_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEmbeddingIsMutable(); embedding_.addAll(other.embedding_); } onChanged(); } if (!other.getObject().isEmpty()) { object_ = other.object_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { index_ = input.readInt64(); break; } // case 8 case 17: { double v = input.readDouble(); ensureEmbeddingIsMutable(); embedding_.addDouble(v); break; } // case 17 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureEmbeddingIsMutable(); while (input.getBytesUntilLimit() > 0) { embedding_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 18 case 26: { object_ = input.readStringRequireUtf8(); break; } // case 26 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 long index_ ; /** * int64 index = 1; * @return The index. */ @java.lang.Override public long getIndex() { return index_; } /** * int64 index = 1; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** * int64 index = 1; * @return This builder for chaining. */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.DoubleList embedding_ = emptyDoubleList(); private void ensureEmbeddingIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { embedding_ = mutableCopy(embedding_); bitField0_ |= 0x00000001; } } /** * repeated double embedding = 2; * @return A list containing the embedding. */ public java.util.List getEmbeddingList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(embedding_) : embedding_; } /** * repeated double embedding = 2; * @return The count of embedding. */ public int getEmbeddingCount() { return embedding_.size(); } /** * repeated double embedding = 2; * @param index The index of the element to return. * @return The embedding at the given index. */ public double getEmbedding(int index) { return embedding_.getDouble(index); } /** * repeated double embedding = 2; * @param index The index to set the value at. * @param value The embedding to set. * @return This builder for chaining. */ public Builder setEmbedding( int index, double value) { ensureEmbeddingIsMutable(); embedding_.setDouble(index, value); onChanged(); return this; } /** * repeated double embedding = 2; * @param value The embedding to add. * @return This builder for chaining. */ public Builder addEmbedding(double value) { ensureEmbeddingIsMutable(); embedding_.addDouble(value); onChanged(); return this; } /** * repeated double embedding = 2; * @param values The embedding to add. * @return This builder for chaining. */ public Builder addAllEmbedding( java.lang.Iterable values) { ensureEmbeddingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, embedding_); onChanged(); return this; } /** * repeated double embedding = 2; * @return This builder for chaining. */ public Builder clearEmbedding() { embedding_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.lang.Object object_ = ""; /** * string object = 3; * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } else { return (java.lang.String) ref; } } /** * string object = 3; * @return The bytes for object. */ public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string object = 3; * @param value The object to set. * @return This builder for chaining. */ public Builder setObject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } object_ = value; onChanged(); return this; } /** * string object = 3; * @return This builder for chaining. */ public Builder clearObject() { object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** * string object = 3; * @param value The bytes for object to set. * @return This builder for chaining. */ public Builder setObjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.Embedding) } // @@protoc_insertion_point(class_scope:api.Embedding) private static final com.volcengine.model.maas.api.Api.Embedding DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.Embedding(); } public static com.volcengine.model.maas.api.Api.Embedding getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Embedding 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.volcengine.model.maas.api.Api.Embedding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmbeddingsRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.EmbeddingsResp) com.google.protobuf.MessageOrBuilder { /** * string req_id = 1; * @return The reqId. */ java.lang.String getReqId(); /** * string req_id = 1; * @return The bytes for reqId. */ com.google.protobuf.ByteString getReqIdBytes(); /** * string object = 2; * @return The object. */ java.lang.String getObject(); /** * string object = 2; * @return The bytes for object. */ com.google.protobuf.ByteString getObjectBytes(); /** * repeated .api.Embedding data = 3; */ java.util.List getDataList(); /** * repeated .api.Embedding data = 3; */ com.volcengine.model.maas.api.Api.Embedding getData(int index); /** * repeated .api.Embedding data = 3; */ int getDataCount(); /** * repeated .api.Embedding data = 3; */ java.util.List getDataOrBuilderList(); /** * repeated .api.Embedding data = 3; */ com.volcengine.model.maas.api.Api.EmbeddingOrBuilder getDataOrBuilder( int index); /** * .api.Model model = 4; * @return Whether the model field is set. */ boolean hasModel(); /** * .api.Model model = 4; * @return The model. */ com.volcengine.model.maas.api.Api.Model getModel(); /** * .api.Model model = 4; */ com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder(); /** * .api.Usage usage = 5; * @return Whether the usage field is set. */ boolean hasUsage(); /** * .api.Usage usage = 5; * @return The usage. */ com.volcengine.model.maas.api.Api.Usage getUsage(); /** * .api.Usage usage = 5; */ com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder(); /** * .api.Error error = 6; * @return Whether the error field is set. */ boolean hasError(); /** * .api.Error error = 6; * @return The error. */ com.volcengine.model.maas.api.Api.Error getError(); /** * .api.Error error = 6; */ com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code api.EmbeddingsResp} */ public static final class EmbeddingsResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.EmbeddingsResp) EmbeddingsRespOrBuilder { private static final long serialVersionUID = 0L; // Use EmbeddingsResp.newBuilder() to construct. private EmbeddingsResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmbeddingsResp() { reqId_ = ""; object_ = ""; data_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmbeddingsResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.EmbeddingsResp.class, com.volcengine.model.maas.api.Api.EmbeddingsResp.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private volatile java.lang.Object reqId_; /** * string req_id = 1; * @return The reqId. */ @java.lang.Override public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } } /** * string req_id = 1; * @return The bytes for reqId. */ @java.lang.Override public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** * string object = 2; * @return The object. */ @java.lang.Override public java.lang.String getObject() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** * string object = 2; * @return The bytes for object. */ @java.lang.Override public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 3; private java.util.List data_; /** * repeated .api.Embedding data = 3; */ @java.lang.Override public java.util.List getDataList() { return data_; } /** * repeated .api.Embedding data = 3; */ @java.lang.Override public java.util.List getDataOrBuilderList() { return data_; } /** * repeated .api.Embedding data = 3; */ @java.lang.Override public int getDataCount() { return data_.size(); } /** * repeated .api.Embedding data = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.Embedding getData(int index) { return data_.get(index); } /** * repeated .api.Embedding data = 3; */ @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingOrBuilder getDataOrBuilder( int index) { return data_.get(index); } public static final int MODEL_FIELD_NUMBER = 4; private com.volcengine.model.maas.api.Api.Model model_; /** * .api.Model model = 4; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { return model_ != null; } /** * .api.Model model = 4; * @return The model. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Model getModel() { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } /** * .api.Model model = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { return getModel(); } public static final int USAGE_FIELD_NUMBER = 5; private com.volcengine.model.maas.api.Api.Usage usage_; /** * .api.Usage usage = 5; * @return Whether the usage field is set. */ @java.lang.Override public boolean hasUsage() { return usage_ != null; } /** * .api.Usage usage = 5; * @return The usage. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Usage getUsage() { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } /** * .api.Usage usage = 5; */ @java.lang.Override public com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder() { return getUsage(); } public static final int ERROR_FIELD_NUMBER = 6; private com.volcengine.model.maas.api.Api.Error error_; /** * .api.Error error = 6; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return error_ != null; } /** * .api.Error error = 6; * @return The error. */ @java.lang.Override public com.volcengine.model.maas.api.Api.Error getError() { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } /** * .api.Error error = 6; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { return getError(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, object_); } for (int i = 0; i < data_.size(); i++) { output.writeMessage(3, data_.get(i)); } if (model_ != null) { output.writeMessage(4, getModel()); } if (usage_ != null) { output.writeMessage(5, getUsage()); } if (error_ != null) { output.writeMessage(6, getError()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reqId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, data_.get(i)); } if (model_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getModel()); } if (usage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUsage()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getError()); } 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.volcengine.model.maas.api.Api.EmbeddingsResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.EmbeddingsResp other = (com.volcengine.model.maas.api.Api.EmbeddingsResp) obj; if (!getReqId() .equals(other.getReqId())) return false; if (!getObject() .equals(other.getObject())) return false; if (!getDataList() .equals(other.getDataList())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel() .equals(other.getModel())) return false; } if (hasUsage() != other.hasUsage()) return false; if (hasUsage()) { if (!getUsage() .equals(other.getUsage())) return false; } if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError() .equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQ_ID_FIELD_NUMBER; hash = (53 * hash) + getReqId().hashCode(); hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } if (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } if (hasUsage()) { hash = (37 * hash) + USAGE_FIELD_NUMBER; hash = (53 * hash) + getUsage().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp 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.volcengine.model.maas.api.Api.EmbeddingsResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp 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.volcengine.model.maas.api.Api.EmbeddingsResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp 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.volcengine.model.maas.api.Api.EmbeddingsResp 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; } /** * Protobuf type {@code api.EmbeddingsResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.EmbeddingsResp) com.volcengine.model.maas.api.Api.EmbeddingsRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.EmbeddingsResp.class, com.volcengine.model.maas.api.Api.EmbeddingsResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.EmbeddingsResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); reqId_ = ""; object_ = ""; if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); } else { data_ = null; dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (modelBuilder_ == null) { model_ = null; } else { model_ = null; modelBuilder_ = null; } if (usageBuilder_ == null) { usage_ = null; } else { usage_ = null; usageBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_EmbeddingsResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingsResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.EmbeddingsResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingsResp build() { com.volcengine.model.maas.api.Api.EmbeddingsResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.EmbeddingsResp buildPartial() { com.volcengine.model.maas.api.Api.EmbeddingsResp result = new com.volcengine.model.maas.api.Api.EmbeddingsResp(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.object_ = object_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } if (modelBuilder_ == null) { result.model_ = model_; } else { result.model_ = modelBuilder_.build(); } if (usageBuilder_ == null) { result.usage_ = usage_; } else { result.usage_ = usageBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.EmbeddingsResp) { return mergeFrom((com.volcengine.model.maas.api.Api.EmbeddingsResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.EmbeddingsResp other) { if (other == com.volcengine.model.maas.api.Api.EmbeddingsResp.getDefaultInstance()) return this; if (!other.getReqId().isEmpty()) { reqId_ = other.reqId_; onChanged(); } if (!other.getObject().isEmpty()) { object_ = other.object_; onChanged(); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } if (other.hasModel()) { mergeModel(other.getModel()); } if (other.hasUsage()) { mergeUsage(other.getUsage()); } if (other.hasError()) { mergeError(other.getError()); } 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: { reqId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { object_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.volcengine.model.maas.api.Api.Embedding m = input.readMessage( com.volcengine.model.maas.api.Api.Embedding.parser(), extensionRegistry); if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(m); } else { dataBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getModelFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { input.readMessage( getUsageFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 case 50: { input.readMessage( getErrorFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object reqId_ = ""; /** * string req_id = 1; * @return The reqId. */ public java.lang.String getReqId() { java.lang.Object ref = reqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string req_id = 1; * @return The bytes for reqId. */ public com.google.protobuf.ByteString getReqIdBytes() { java.lang.Object ref = reqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string req_id = 1; * @param value The reqId to set. * @return This builder for chaining. */ public Builder setReqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reqId_ = value; onChanged(); return this; } /** * string req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = getDefaultInstance().getReqId(); onChanged(); return this; } /** * string req_id = 1; * @param value The bytes for reqId to set. * @return This builder for chaining. */ public Builder setReqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reqId_ = value; onChanged(); return this; } private java.lang.Object object_ = ""; /** * string object = 2; * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } else { return (java.lang.String) ref; } } /** * string object = 2; * @return The bytes for object. */ public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string object = 2; * @param value The object to set. * @return This builder for chaining. */ public Builder setObject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } object_ = value; onChanged(); return this; } /** * string object = 2; * @return This builder for chaining. */ public Builder clearObject() { object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** * string object = 2; * @param value The bytes for object to set. * @return This builder for chaining. */ public Builder setObjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; onChanged(); return this; } private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Embedding, com.volcengine.model.maas.api.Api.Embedding.Builder, com.volcengine.model.maas.api.Api.EmbeddingOrBuilder> dataBuilder_; /** * repeated .api.Embedding data = 3; */ public java.util.List getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * repeated .api.Embedding data = 3; */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * repeated .api.Embedding data = 3; */ public com.volcengine.model.maas.api.Api.Embedding getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * repeated .api.Embedding data = 3; */ public Builder setData( int index, com.volcengine.model.maas.api.Api.Embedding value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder setData( int index, com.volcengine.model.maas.api.Api.Embedding.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder addData(com.volcengine.model.maas.api.Api.Embedding value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder addData( int index, com.volcengine.model.maas.api.Api.Embedding value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder addData( com.volcengine.model.maas.api.Api.Embedding.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder addData( int index, com.volcengine.model.maas.api.Api.Embedding.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder addAllData( java.lang.Iterable values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * repeated .api.Embedding data = 3; */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * repeated .api.Embedding data = 3; */ public com.volcengine.model.maas.api.Api.Embedding.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * repeated .api.Embedding data = 3; */ public com.volcengine.model.maas.api.Api.EmbeddingOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * repeated .api.Embedding data = 3; */ public java.util.List getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * repeated .api.Embedding data = 3; */ public com.volcengine.model.maas.api.Api.Embedding.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( com.volcengine.model.maas.api.Api.Embedding.getDefaultInstance()); } /** * repeated .api.Embedding data = 3; */ public com.volcengine.model.maas.api.Api.Embedding.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, com.volcengine.model.maas.api.Api.Embedding.getDefaultInstance()); } /** * repeated .api.Embedding data = 3; */ public java.util.List getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Embedding, com.volcengine.model.maas.api.Api.Embedding.Builder, com.volcengine.model.maas.api.Api.EmbeddingOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.volcengine.model.maas.api.Api.Embedding, com.volcengine.model.maas.api.Api.Embedding.Builder, com.volcengine.model.maas.api.Api.EmbeddingOrBuilder>( data_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private com.volcengine.model.maas.api.Api.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> modelBuilder_; /** * .api.Model model = 4; * @return Whether the model field is set. */ public boolean hasModel() { return modelBuilder_ != null || model_ != null; } /** * .api.Model model = 4; * @return The model. */ public com.volcengine.model.maas.api.Api.Model getModel() { if (modelBuilder_ == null) { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** * .api.Model model = 4; */ public Builder setModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { modelBuilder_.setMessage(value); } return this; } /** * .api.Model model = 4; */ public Builder setModel( com.volcengine.model.maas.api.Api.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Model model = 4; */ public Builder mergeModel(com.volcengine.model.maas.api.Api.Model value) { if (modelBuilder_ == null) { if (model_ != null) { model_ = com.volcengine.model.maas.api.Api.Model.newBuilder(model_).mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { modelBuilder_.mergeFrom(value); } return this; } /** * .api.Model model = 4; */ public Builder clearModel() { if (modelBuilder_ == null) { model_ = null; onChanged(); } else { model_ = null; modelBuilder_ = null; } return this; } /** * .api.Model model = 4; */ public com.volcengine.model.maas.api.Api.Model.Builder getModelBuilder() { onChanged(); return getModelFieldBuilder().getBuilder(); } /** * .api.Model model = 4; */ public com.volcengine.model.maas.api.Api.ModelOrBuilder getModelOrBuilder() { if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { return model_ == null ? com.volcengine.model.maas.api.Api.Model.getDefaultInstance() : model_; } } /** * .api.Model model = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Model, com.volcengine.model.maas.api.Api.Model.Builder, com.volcengine.model.maas.api.Api.ModelOrBuilder>( getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; } private com.volcengine.model.maas.api.Api.Usage usage_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder> usageBuilder_; /** * .api.Usage usage = 5; * @return Whether the usage field is set. */ public boolean hasUsage() { return usageBuilder_ != null || usage_ != null; } /** * .api.Usage usage = 5; * @return The usage. */ public com.volcengine.model.maas.api.Api.Usage getUsage() { if (usageBuilder_ == null) { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } else { return usageBuilder_.getMessage(); } } /** * .api.Usage usage = 5; */ public Builder setUsage(com.volcengine.model.maas.api.Api.Usage value) { if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } usage_ = value; onChanged(); } else { usageBuilder_.setMessage(value); } return this; } /** * .api.Usage usage = 5; */ public Builder setUsage( com.volcengine.model.maas.api.Api.Usage.Builder builderForValue) { if (usageBuilder_ == null) { usage_ = builderForValue.build(); onChanged(); } else { usageBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Usage usage = 5; */ public Builder mergeUsage(com.volcengine.model.maas.api.Api.Usage value) { if (usageBuilder_ == null) { if (usage_ != null) { usage_ = com.volcengine.model.maas.api.Api.Usage.newBuilder(usage_).mergeFrom(value).buildPartial(); } else { usage_ = value; } onChanged(); } else { usageBuilder_.mergeFrom(value); } return this; } /** * .api.Usage usage = 5; */ public Builder clearUsage() { if (usageBuilder_ == null) { usage_ = null; onChanged(); } else { usage_ = null; usageBuilder_ = null; } return this; } /** * .api.Usage usage = 5; */ public com.volcengine.model.maas.api.Api.Usage.Builder getUsageBuilder() { onChanged(); return getUsageFieldBuilder().getBuilder(); } /** * .api.Usage usage = 5; */ public com.volcengine.model.maas.api.Api.UsageOrBuilder getUsageOrBuilder() { if (usageBuilder_ != null) { return usageBuilder_.getMessageOrBuilder(); } else { return usage_ == null ? com.volcengine.model.maas.api.Api.Usage.getDefaultInstance() : usage_; } } /** * .api.Usage usage = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder> getUsageFieldBuilder() { if (usageBuilder_ == null) { usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Usage, com.volcengine.model.maas.api.Api.Usage.Builder, com.volcengine.model.maas.api.Api.UsageOrBuilder>( getUsage(), getParentForChildren(), isClean()); usage_ = null; } return usageBuilder_; } private com.volcengine.model.maas.api.Api.Error error_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> errorBuilder_; /** * .api.Error error = 6; * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .api.Error error = 6; * @return The error. */ public com.volcengine.model.maas.api.Api.Error getError() { if (errorBuilder_ == null) { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .api.Error error = 6; */ public Builder setError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .api.Error error = 6; */ public Builder setError( com.volcengine.model.maas.api.Api.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.Error error = 6; */ public Builder mergeError(com.volcengine.model.maas.api.Api.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = com.volcengine.model.maas.api.Api.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .api.Error error = 6; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .api.Error error = 6; */ public com.volcengine.model.maas.api.Api.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .api.Error error = 6; */ public com.volcengine.model.maas.api.Api.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.volcengine.model.maas.api.Api.Error.getDefaultInstance() : error_; } } /** * .api.Error error = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.Error, com.volcengine.model.maas.api.Api.Error.Builder, com.volcengine.model.maas.api.Api.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } @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:api.EmbeddingsResp) } // @@protoc_insertion_point(class_scope:api.EmbeddingsResp) private static final com.volcengine.model.maas.api.Api.EmbeddingsResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.EmbeddingsResp(); } public static com.volcengine.model.maas.api.Api.EmbeddingsResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmbeddingsResp 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.volcengine.model.maas.api.Api.EmbeddingsResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListStringOrBuilder extends // @@protoc_insertion_point(interface_extends:api.ListString) com.google.protobuf.MessageOrBuilder { /** * repeated string values = 1; * @return A list containing the values. */ java.util.List getValuesList(); /** * repeated string values = 1; * @return The count of values. */ int getValuesCount(); /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * Protobuf type {@code api.ListString} */ public static final class ListString extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.ListString) ListStringOrBuilder { private static final long serialVersionUID = 0L; // Use ListString.newBuilder() to construct. private ListString(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListString() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListString(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ListString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ListString_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ListString.class, com.volcengine.model.maas.api.Api.ListString.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * repeated string values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } 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 < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } 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 < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } 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.volcengine.model.maas.api.Api.ListString)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.ListString other = (com.volcengine.model.maas.api.Api.ListString) obj; if (!getValuesList() .equals(other.getValuesList())) 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 (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.ListString parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ListString parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ListString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ListString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ListString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.ListString parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.ListString parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ListString 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.volcengine.model.maas.api.Api.ListString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ListString 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.volcengine.model.maas.api.Api.ListString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.ListString 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.volcengine.model.maas.api.Api.ListString 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; } /** * Protobuf type {@code api.ListString} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.ListString) com.volcengine.model.maas.api.Api.ListStringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_ListString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_ListString_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.ListString.class, com.volcengine.model.maas.api.Api.ListString.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.ListString.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_ListString_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.ListString getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.ListString.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.ListString build() { com.volcengine.model.maas.api.Api.ListString result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.ListString buildPartial() { com.volcengine.model.maas.api.Api.ListString result = new com.volcengine.model.maas.api.Api.ListString(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; 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 com.volcengine.model.maas.api.Api.ListString) { return mergeFrom((com.volcengine.model.maas.api.Api.ListString)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.ListString other) { if (other == com.volcengine.model.maas.api.Api.ListString.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureValuesIsMutable(); values_.add(s); break; } // case 10 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 values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; } } /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * repeated string values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * repeated string values = 1; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * repeated string values = 1; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * repeated string values = 1; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * repeated string values = 1; * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string values = 1; * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.ListString) } // @@protoc_insertion_point(class_scope:api.ListString) private static final com.volcengine.model.maas.api.Api.ListString DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.ListString(); } public static com.volcengine.model.maas.api.Api.ListString getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListString 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.volcengine.model.maas.api.Api.ListString getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InnerBypassGetIdentityReqOrBuilder extends // @@protoc_insertion_point(interface_extends:api.InnerBypassGetIdentityReq) com.google.protobuf.MessageOrBuilder { /** * string method = 1; * @return The method. */ java.lang.String getMethod(); /** * string method = 1; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * string body_hash = 2; * @return The bodyHash. */ java.lang.String getBodyHash(); /** * string body_hash = 2; * @return The bytes for bodyHash. */ com.google.protobuf.ByteString getBodyHashBytes(); /** * string uri = 3; * @return The uri. */ java.lang.String getUri(); /** * string uri = 3; * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** * map<string, .api.ListString> query = 4; */ int getQueryCount(); /** * map<string, .api.ListString> query = 4; */ boolean containsQuery( java.lang.String key); /** * Use {@link #getQueryMap()} instead. */ @java.lang.Deprecated java.util.Map getQuery(); /** * map<string, .api.ListString> query = 4; */ java.util.Map getQueryMap(); /** * map<string, .api.ListString> query = 4; */ /* nullable */ com.volcengine.model.maas.api.Api.ListString getQueryOrDefault( java.lang.String key, /* nullable */ com.volcengine.model.maas.api.Api.ListString defaultValue); /** * map<string, .api.ListString> query = 4; */ com.volcengine.model.maas.api.Api.ListString getQueryOrThrow( java.lang.String key); /** * map<string, string> header = 5; */ int getHeaderCount(); /** * map<string, string> header = 5; */ boolean containsHeader( java.lang.String key); /** * Use {@link #getHeaderMap()} instead. */ @java.lang.Deprecated java.util.Map getHeader(); /** * map<string, string> header = 5; */ java.util.Map getHeaderMap(); /** * map<string, string> header = 5; */ /* nullable */ java.lang.String getHeaderOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> header = 5; */ java.lang.String getHeaderOrThrow( java.lang.String key); } /** * Protobuf type {@code api.InnerBypassGetIdentityReq} */ public static final class InnerBypassGetIdentityReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.InnerBypassGetIdentityReq) InnerBypassGetIdentityReqOrBuilder { private static final long serialVersionUID = 0L; // Use InnerBypassGetIdentityReq.newBuilder() to construct. private InnerBypassGetIdentityReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InnerBypassGetIdentityReq() { method_ = ""; bodyHash_ = ""; uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InnerBypassGetIdentityReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetQuery(); case 5: return internalGetHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.class, com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.Builder.class); } public static final int METHOD_FIELD_NUMBER = 1; private volatile java.lang.Object method_; /** * string method = 1; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** * string method = 1; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BODY_HASH_FIELD_NUMBER = 2; private volatile java.lang.Object bodyHash_; /** * string body_hash = 2; * @return The bodyHash. */ @java.lang.Override public java.lang.String getBodyHash() { java.lang.Object ref = bodyHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bodyHash_ = s; return s; } } /** * string body_hash = 2; * @return The bytes for bodyHash. */ @java.lang.Override public com.google.protobuf.ByteString getBodyHashBytes() { java.lang.Object ref = bodyHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bodyHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URI_FIELD_NUMBER = 3; private volatile java.lang.Object uri_; /** * string uri = 3; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** * string uri = 3; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_FIELD_NUMBER = 4; private static final class QueryDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.volcengine.model.maas.api.Api.ListString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_QueryEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.volcengine.model.maas.api.Api.ListString.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.volcengine.model.maas.api.Api.ListString> query_; private com.google.protobuf.MapField internalGetQuery() { if (query_ == null) { return com.google.protobuf.MapField.emptyMapField( QueryDefaultEntryHolder.defaultEntry); } return query_; } public int getQueryCount() { return internalGetQuery().getMap().size(); } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public boolean containsQuery( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetQuery().getMap().containsKey(key); } /** * Use {@link #getQueryMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getQuery() { return getQueryMap(); } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public java.util.Map getQueryMap() { return internalGetQuery().getMap(); } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ListString getQueryOrDefault( java.lang.String key, com.volcengine.model.maas.api.Api.ListString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetQuery().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ListString getQueryOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetQuery().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int HEADER_FIELD_NUMBER = 5; private static final class HeaderDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_HeaderEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> header_; private com.google.protobuf.MapField internalGetHeader() { if (header_ == null) { return com.google.protobuf.MapField.emptyMapField( HeaderDefaultEntryHolder.defaultEntry); } return header_; } public int getHeaderCount() { return internalGetHeader().getMap().size(); } /** * map<string, string> header = 5; */ @java.lang.Override public boolean containsHeader( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeader().getMap().containsKey(key); } /** * Use {@link #getHeaderMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeader() { return getHeaderMap(); } /** * map<string, string> header = 5; */ @java.lang.Override public java.util.Map getHeaderMap() { return internalGetHeader().getMap(); } /** * map<string, string> header = 5; */ @java.lang.Override public java.lang.String getHeaderOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeader().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> header = 5; */ @java.lang.Override public java.lang.String getHeaderOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeader().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bodyHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bodyHash_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetQuery(), QueryDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetHeader(), HeaderDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bodyHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bodyHash_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } for (java.util.Map.Entry entry : internalGetQuery().getMap().entrySet()) { com.google.protobuf.MapEntry query__ = QueryDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, query__); } for (java.util.Map.Entry entry : internalGetHeader().getMap().entrySet()) { com.google.protobuf.MapEntry header__ = HeaderDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, header__); } 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq other = (com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq) obj; if (!getMethod() .equals(other.getMethod())) return false; if (!getBodyHash() .equals(other.getBodyHash())) return false; if (!getUri() .equals(other.getUri())) return false; if (!internalGetQuery().equals( other.internalGetQuery())) return false; if (!internalGetHeader().equals( other.internalGetHeader())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); hash = (37 * hash) + BODY_HASH_FIELD_NUMBER; hash = (53 * hash) + getBodyHash().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (!internalGetQuery().getMap().isEmpty()) { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + internalGetQuery().hashCode(); } if (!internalGetHeader().getMap().isEmpty()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + internalGetHeader().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq 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; } /** * Protobuf type {@code api.InnerBypassGetIdentityReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.InnerBypassGetIdentityReq) com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetQuery(); case 5: return internalGetHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableQuery(); case 5: return internalGetMutableHeader(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.class, com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); method_ = ""; bodyHash_ = ""; uri_ = ""; internalGetMutableQuery().clear(); internalGetMutableHeader().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityReq_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq build() { com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq buildPartial() { com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq result = new com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq(this); int from_bitField0_ = bitField0_; result.method_ = method_; result.bodyHash_ = bodyHash_; result.uri_ = uri_; result.query_ = internalGetQuery(); result.query_.makeImmutable(); result.header_ = internalGetHeader(); result.header_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq) { return mergeFrom((com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq other) { if (other == com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq.getDefaultInstance()) return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); } if (!other.getBodyHash().isEmpty()) { bodyHash_ = other.bodyHash_; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } internalGetMutableQuery().mergeFrom( other.internalGetQuery()); internalGetMutableHeader().mergeFrom( other.internalGetHeader()); 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: { method_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { bodyHash_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { uri_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { com.google.protobuf.MapEntry query__ = input.readMessage( QueryDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableQuery().getMutableMap().put( query__.getKey(), query__.getValue()); break; } // case 34 case 42: { com.google.protobuf.MapEntry header__ = input.readMessage( HeaderDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHeader().getMutableMap().put( header__.getKey(), header__.getValue()); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object method_ = ""; /** * string method = 1; * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** * string method = 1; * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string method = 1; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); return this; } /** * string method = 1; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** * string method = 1; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; onChanged(); return this; } private java.lang.Object bodyHash_ = ""; /** * string body_hash = 2; * @return The bodyHash. */ public java.lang.String getBodyHash() { java.lang.Object ref = bodyHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bodyHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * string body_hash = 2; * @return The bytes for bodyHash. */ public com.google.protobuf.ByteString getBodyHashBytes() { java.lang.Object ref = bodyHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bodyHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string body_hash = 2; * @param value The bodyHash to set. * @return This builder for chaining. */ public Builder setBodyHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bodyHash_ = value; onChanged(); return this; } /** * string body_hash = 2; * @return This builder for chaining. */ public Builder clearBodyHash() { bodyHash_ = getDefaultInstance().getBodyHash(); onChanged(); return this; } /** * string body_hash = 2; * @param value The bytes for bodyHash to set. * @return This builder for chaining. */ public Builder setBodyHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bodyHash_ = value; onChanged(); return this; } private java.lang.Object uri_ = ""; /** * string uri = 3; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * string uri = 3; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string uri = 3; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /** * string uri = 3; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** * string uri = 3; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.volcengine.model.maas.api.Api.ListString> query_; private com.google.protobuf.MapField internalGetQuery() { if (query_ == null) { return com.google.protobuf.MapField.emptyMapField( QueryDefaultEntryHolder.defaultEntry); } return query_; } private com.google.protobuf.MapField internalGetMutableQuery() { onChanged();; if (query_ == null) { query_ = com.google.protobuf.MapField.newMapField( QueryDefaultEntryHolder.defaultEntry); } if (!query_.isMutable()) { query_ = query_.copy(); } return query_; } public int getQueryCount() { return internalGetQuery().getMap().size(); } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public boolean containsQuery( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetQuery().getMap().containsKey(key); } /** * Use {@link #getQueryMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getQuery() { return getQueryMap(); } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public java.util.Map getQueryMap() { return internalGetQuery().getMap(); } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ListString getQueryOrDefault( java.lang.String key, com.volcengine.model.maas.api.Api.ListString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetQuery().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .api.ListString> query = 4; */ @java.lang.Override public com.volcengine.model.maas.api.Api.ListString getQueryOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetQuery().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearQuery() { internalGetMutableQuery().getMutableMap() .clear(); return this; } /** * map<string, .api.ListString> query = 4; */ public Builder removeQuery( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableQuery().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableQuery() { return internalGetMutableQuery().getMutableMap(); } /** * map<string, .api.ListString> query = 4; */ public Builder putQuery( java.lang.String key, com.volcengine.model.maas.api.Api.ListString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableQuery().getMutableMap() .put(key, value); return this; } /** * map<string, .api.ListString> query = 4; */ public Builder putAllQuery( java.util.Map values) { internalGetMutableQuery().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> header_; private com.google.protobuf.MapField internalGetHeader() { if (header_ == null) { return com.google.protobuf.MapField.emptyMapField( HeaderDefaultEntryHolder.defaultEntry); } return header_; } private com.google.protobuf.MapField internalGetMutableHeader() { onChanged();; if (header_ == null) { header_ = com.google.protobuf.MapField.newMapField( HeaderDefaultEntryHolder.defaultEntry); } if (!header_.isMutable()) { header_ = header_.copy(); } return header_; } public int getHeaderCount() { return internalGetHeader().getMap().size(); } /** * map<string, string> header = 5; */ @java.lang.Override public boolean containsHeader( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeader().getMap().containsKey(key); } /** * Use {@link #getHeaderMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeader() { return getHeaderMap(); } /** * map<string, string> header = 5; */ @java.lang.Override public java.util.Map getHeaderMap() { return internalGetHeader().getMap(); } /** * map<string, string> header = 5; */ @java.lang.Override public java.lang.String getHeaderOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeader().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> header = 5; */ @java.lang.Override public java.lang.String getHeaderOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeader().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHeader() { internalGetMutableHeader().getMutableMap() .clear(); return this; } /** * map<string, string> header = 5; */ public Builder removeHeader( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableHeader().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHeader() { return internalGetMutableHeader().getMutableMap(); } /** * map<string, string> header = 5; */ public Builder putHeader( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHeader().getMutableMap() .put(key, value); return this; } /** * map<string, string> header = 5; */ public Builder putAllHeader( java.util.Map values) { internalGetMutableHeader().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.InnerBypassGetIdentityReq) } // @@protoc_insertion_point(class_scope:api.InnerBypassGetIdentityReq) private static final com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq(); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InnerBypassGetIdentityReq 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BypassIdentityOrBuilder extends // @@protoc_insertion_point(interface_extends:api.BypassIdentity) com.google.protobuf.MessageOrBuilder { /** * uint64 account_id = 1; * @return The accountId. */ long getAccountId(); /** * uint64 identity_id = 2; * @return The identityId. */ long getIdentityId(); /** * string identity_type = 3; * @return The identityType. */ java.lang.String getIdentityType(); /** * string identity_type = 3; * @return The bytes for identityType. */ com.google.protobuf.ByteString getIdentityTypeBytes(); /** * string identity_name = 4; * @return The identityName. */ java.lang.String getIdentityName(); /** * string identity_name = 4; * @return The bytes for identityName. */ com.google.protobuf.ByteString getIdentityNameBytes(); /** * string channel = 5; * @return The channel. */ java.lang.String getChannel(); /** * string channel = 5; * @return The bytes for channel. */ com.google.protobuf.ByteString getChannelBytes(); /** * string original_identity_type = 6; * @return The originalIdentityType. */ java.lang.String getOriginalIdentityType(); /** * string original_identity_type = 6; * @return The bytes for originalIdentityType. */ com.google.protobuf.ByteString getOriginalIdentityTypeBytes(); } /** * Protobuf type {@code api.BypassIdentity} */ public static final class BypassIdentity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.BypassIdentity) BypassIdentityOrBuilder { private static final long serialVersionUID = 0L; // Use BypassIdentity.newBuilder() to construct. private BypassIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BypassIdentity() { identityType_ = ""; identityName_ = ""; channel_ = ""; originalIdentityType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BypassIdentity(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_BypassIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_BypassIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.BypassIdentity.class, com.volcengine.model.maas.api.Api.BypassIdentity.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private long accountId_; /** * uint64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int IDENTITY_ID_FIELD_NUMBER = 2; private long identityId_; /** * uint64 identity_id = 2; * @return The identityId. */ @java.lang.Override public long getIdentityId() { return identityId_; } public static final int IDENTITY_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object identityType_; /** * string identity_type = 3; * @return The identityType. */ @java.lang.Override public java.lang.String getIdentityType() { java.lang.Object ref = identityType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityType_ = s; return s; } } /** * string identity_type = 3; * @return The bytes for identityType. */ @java.lang.Override public com.google.protobuf.ByteString getIdentityTypeBytes() { java.lang.Object ref = identityType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identityType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IDENTITY_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object identityName_; /** * string identity_name = 4; * @return The identityName. */ @java.lang.Override public java.lang.String getIdentityName() { java.lang.Object ref = identityName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityName_ = s; return s; } } /** * string identity_name = 4; * @return The bytes for identityName. */ @java.lang.Override public com.google.protobuf.ByteString getIdentityNameBytes() { java.lang.Object ref = identityName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identityName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHANNEL_FIELD_NUMBER = 5; private volatile java.lang.Object channel_; /** * string channel = 5; * @return The channel. */ @java.lang.Override public java.lang.String getChannel() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** * string channel = 5; * @return The bytes for channel. */ @java.lang.Override public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINAL_IDENTITY_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object originalIdentityType_; /** * string original_identity_type = 6; * @return The originalIdentityType. */ @java.lang.Override public java.lang.String getOriginalIdentityType() { java.lang.Object ref = originalIdentityType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalIdentityType_ = s; return s; } } /** * string original_identity_type = 6; * @return The bytes for originalIdentityType. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalIdentityTypeBytes() { java.lang.Object ref = originalIdentityType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalIdentityType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (accountId_ != 0L) { output.writeUInt64(1, accountId_); } if (identityId_ != 0L) { output.writeUInt64(2, identityId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identityType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, identityName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, channel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalIdentityType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, originalIdentityType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, accountId_); } if (identityId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, identityId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, identityName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, channel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalIdentityType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, originalIdentityType_); } 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.volcengine.model.maas.api.Api.BypassIdentity)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.BypassIdentity other = (com.volcengine.model.maas.api.Api.BypassIdentity) obj; if (getAccountId() != other.getAccountId()) return false; if (getIdentityId() != other.getIdentityId()) return false; if (!getIdentityType() .equals(other.getIdentityType())) return false; if (!getIdentityName() .equals(other.getIdentityName())) return false; if (!getChannel() .equals(other.getChannel())) return false; if (!getOriginalIdentityType() .equals(other.getOriginalIdentityType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + IDENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIdentityId()); hash = (37 * hash) + IDENTITY_TYPE_FIELD_NUMBER; hash = (53 * hash) + getIdentityType().hashCode(); hash = (37 * hash) + IDENTITY_NAME_FIELD_NUMBER; hash = (53 * hash) + getIdentityName().hashCode(); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); hash = (37 * hash) + ORIGINAL_IDENTITY_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginalIdentityType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.BypassIdentity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.BypassIdentity 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.volcengine.model.maas.api.Api.BypassIdentity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.BypassIdentity 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.volcengine.model.maas.api.Api.BypassIdentity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.BypassIdentity 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.volcengine.model.maas.api.Api.BypassIdentity 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; } /** * Protobuf type {@code api.BypassIdentity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.BypassIdentity) com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_BypassIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_BypassIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.BypassIdentity.class, com.volcengine.model.maas.api.Api.BypassIdentity.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.BypassIdentity.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); accountId_ = 0L; identityId_ = 0L; identityType_ = ""; identityName_ = ""; channel_ = ""; originalIdentityType_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_BypassIdentity_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.BypassIdentity getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.BypassIdentity.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.BypassIdentity build() { com.volcengine.model.maas.api.Api.BypassIdentity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.BypassIdentity buildPartial() { com.volcengine.model.maas.api.Api.BypassIdentity result = new com.volcengine.model.maas.api.Api.BypassIdentity(this); result.accountId_ = accountId_; result.identityId_ = identityId_; result.identityType_ = identityType_; result.identityName_ = identityName_; result.channel_ = channel_; result.originalIdentityType_ = originalIdentityType_; 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 com.volcengine.model.maas.api.Api.BypassIdentity) { return mergeFrom((com.volcengine.model.maas.api.Api.BypassIdentity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.BypassIdentity other) { if (other == com.volcengine.model.maas.api.Api.BypassIdentity.getDefaultInstance()) return this; if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (other.getIdentityId() != 0L) { setIdentityId(other.getIdentityId()); } if (!other.getIdentityType().isEmpty()) { identityType_ = other.identityType_; onChanged(); } if (!other.getIdentityName().isEmpty()) { identityName_ = other.identityName_; onChanged(); } if (!other.getChannel().isEmpty()) { channel_ = other.channel_; onChanged(); } if (!other.getOriginalIdentityType().isEmpty()) { originalIdentityType_ = other.originalIdentityType_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readUInt64(); break; } // case 8 case 16: { identityId_ = input.readUInt64(); break; } // case 16 case 26: { identityType_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { identityName_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { channel_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { originalIdentityType_ = input.readStringRequireUtf8(); break; } // case 50 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 long accountId_ ; /** * uint64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * uint64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; onChanged(); return this; } /** * uint64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = 0L; onChanged(); return this; } private long identityId_ ; /** * uint64 identity_id = 2; * @return The identityId. */ @java.lang.Override public long getIdentityId() { return identityId_; } /** * uint64 identity_id = 2; * @param value The identityId to set. * @return This builder for chaining. */ public Builder setIdentityId(long value) { identityId_ = value; onChanged(); return this; } /** * uint64 identity_id = 2; * @return This builder for chaining. */ public Builder clearIdentityId() { identityId_ = 0L; onChanged(); return this; } private java.lang.Object identityType_ = ""; /** * string identity_type = 3; * @return The identityType. */ public java.lang.String getIdentityType() { java.lang.Object ref = identityType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string identity_type = 3; * @return The bytes for identityType. */ public com.google.protobuf.ByteString getIdentityTypeBytes() { java.lang.Object ref = identityType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identityType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string identity_type = 3; * @param value The identityType to set. * @return This builder for chaining. */ public Builder setIdentityType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identityType_ = value; onChanged(); return this; } /** * string identity_type = 3; * @return This builder for chaining. */ public Builder clearIdentityType() { identityType_ = getDefaultInstance().getIdentityType(); onChanged(); return this; } /** * string identity_type = 3; * @param value The bytes for identityType to set. * @return This builder for chaining. */ public Builder setIdentityTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identityType_ = value; onChanged(); return this; } private java.lang.Object identityName_ = ""; /** * string identity_name = 4; * @return The identityName. */ public java.lang.String getIdentityName() { java.lang.Object ref = identityName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string identity_name = 4; * @return The bytes for identityName. */ public com.google.protobuf.ByteString getIdentityNameBytes() { java.lang.Object ref = identityName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identityName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string identity_name = 4; * @param value The identityName to set. * @return This builder for chaining. */ public Builder setIdentityName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identityName_ = value; onChanged(); return this; } /** * string identity_name = 4; * @return This builder for chaining. */ public Builder clearIdentityName() { identityName_ = getDefaultInstance().getIdentityName(); onChanged(); return this; } /** * string identity_name = 4; * @param value The bytes for identityName to set. * @return This builder for chaining. */ public Builder setIdentityNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identityName_ = value; onChanged(); return this; } private java.lang.Object channel_ = ""; /** * string channel = 5; * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } else { return (java.lang.String) ref; } } /** * string channel = 5; * @return The bytes for channel. */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string channel = 5; * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** * string channel = 5; * @return This builder for chaining. */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** * string channel = 5; * @param value The bytes for channel to set. * @return This builder for chaining. */ public Builder setChannelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channel_ = value; onChanged(); return this; } private java.lang.Object originalIdentityType_ = ""; /** * string original_identity_type = 6; * @return The originalIdentityType. */ public java.lang.String getOriginalIdentityType() { java.lang.Object ref = originalIdentityType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalIdentityType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string original_identity_type = 6; * @return The bytes for originalIdentityType. */ public com.google.protobuf.ByteString getOriginalIdentityTypeBytes() { java.lang.Object ref = originalIdentityType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalIdentityType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string original_identity_type = 6; * @param value The originalIdentityType to set. * @return This builder for chaining. */ public Builder setOriginalIdentityType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalIdentityType_ = value; onChanged(); return this; } /** * string original_identity_type = 6; * @return This builder for chaining. */ public Builder clearOriginalIdentityType() { originalIdentityType_ = getDefaultInstance().getOriginalIdentityType(); onChanged(); return this; } /** * string original_identity_type = 6; * @param value The bytes for originalIdentityType to set. * @return This builder for chaining. */ public Builder setOriginalIdentityTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalIdentityType_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:api.BypassIdentity) } // @@protoc_insertion_point(class_scope:api.BypassIdentity) private static final com.volcengine.model.maas.api.Api.BypassIdentity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.BypassIdentity(); } public static com.volcengine.model.maas.api.Api.BypassIdentity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BypassIdentity 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.volcengine.model.maas.api.Api.BypassIdentity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InnerBypassGetIdentityRespOrBuilder extends // @@protoc_insertion_point(interface_extends:api.InnerBypassGetIdentityResp) com.google.protobuf.MessageOrBuilder { /** * string access_key = 1; * @return The accessKey. */ java.lang.String getAccessKey(); /** * string access_key = 1; * @return The bytes for accessKey. */ com.google.protobuf.ByteString getAccessKeyBytes(); /** * .api.BypassIdentity identity = 2; * @return Whether the identity field is set. */ boolean hasIdentity(); /** * .api.BypassIdentity identity = 2; * @return The identity. */ com.volcengine.model.maas.api.Api.BypassIdentity getIdentity(); /** * .api.BypassIdentity identity = 2; */ com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder getIdentityOrBuilder(); } /** * Protobuf type {@code api.InnerBypassGetIdentityResp} */ public static final class InnerBypassGetIdentityResp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:api.InnerBypassGetIdentityResp) InnerBypassGetIdentityRespOrBuilder { private static final long serialVersionUID = 0L; // Use InnerBypassGetIdentityResp.newBuilder() to construct. private InnerBypassGetIdentityResp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InnerBypassGetIdentityResp() { accessKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InnerBypassGetIdentityResp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.class, com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.Builder.class); } public static final int ACCESS_KEY_FIELD_NUMBER = 1; private volatile java.lang.Object accessKey_; /** * string access_key = 1; * @return The accessKey. */ @java.lang.Override public java.lang.String getAccessKey() { java.lang.Object ref = accessKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessKey_ = s; return s; } } /** * string access_key = 1; * @return The bytes for accessKey. */ @java.lang.Override public com.google.protobuf.ByteString getAccessKeyBytes() { java.lang.Object ref = accessKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accessKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IDENTITY_FIELD_NUMBER = 2; private com.volcengine.model.maas.api.Api.BypassIdentity identity_; /** * .api.BypassIdentity identity = 2; * @return Whether the identity field is set. */ @java.lang.Override public boolean hasIdentity() { return identity_ != null; } /** * .api.BypassIdentity identity = 2; * @return The identity. */ @java.lang.Override public com.volcengine.model.maas.api.Api.BypassIdentity getIdentity() { return identity_ == null ? com.volcengine.model.maas.api.Api.BypassIdentity.getDefaultInstance() : identity_; } /** * .api.BypassIdentity identity = 2; */ @java.lang.Override public com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder getIdentityOrBuilder() { return getIdentity(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessKey_); } if (identity_ != null) { output.writeMessage(2, getIdentity()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessKey_); } if (identity_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIdentity()); } 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp)) { return super.equals(obj); } com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp other = (com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp) obj; if (!getAccessKey() .equals(other.getAccessKey())) return false; if (hasIdentity() != other.hasIdentity()) return false; if (hasIdentity()) { if (!getIdentity() .equals(other.getIdentity())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCESS_KEY_FIELD_NUMBER; hash = (53 * hash) + getAccessKey().hashCode(); if (hasIdentity()) { hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp 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; } /** * Protobuf type {@code api.InnerBypassGetIdentityResp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:api.InnerBypassGetIdentityResp) com.volcengine.model.maas.api.Api.InnerBypassGetIdentityRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityResp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityResp_fieldAccessorTable .ensureFieldAccessorsInitialized( com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.class, com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.Builder.class); } // Construct using com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); accessKey_ = ""; if (identityBuilder_ == null) { identity_ = null; } else { identity_ = null; identityBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.volcengine.model.maas.api.Api.internal_static_api_InnerBypassGetIdentityResp_descriptor; } @java.lang.Override public com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp getDefaultInstanceForType() { return com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.getDefaultInstance(); } @java.lang.Override public com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp build() { com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp buildPartial() { com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp result = new com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp(this); result.accessKey_ = accessKey_; if (identityBuilder_ == null) { result.identity_ = identity_; } else { result.identity_ = identityBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp) { return mergeFrom((com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp other) { if (other == com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp.getDefaultInstance()) return this; if (!other.getAccessKey().isEmpty()) { accessKey_ = other.accessKey_; onChanged(); } if (other.hasIdentity()) { mergeIdentity(other.getIdentity()); } 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: { accessKey_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getIdentityFieldBuilder().getBuilder(), extensionRegistry); 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 java.lang.Object accessKey_ = ""; /** * string access_key = 1; * @return The accessKey. */ public java.lang.String getAccessKey() { java.lang.Object ref = accessKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * string access_key = 1; * @return The bytes for accessKey. */ public com.google.protobuf.ByteString getAccessKeyBytes() { java.lang.Object ref = accessKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accessKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string access_key = 1; * @param value The accessKey to set. * @return This builder for chaining. */ public Builder setAccessKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accessKey_ = value; onChanged(); return this; } /** * string access_key = 1; * @return This builder for chaining. */ public Builder clearAccessKey() { accessKey_ = getDefaultInstance().getAccessKey(); onChanged(); return this; } /** * string access_key = 1; * @param value The bytes for accessKey to set. * @return This builder for chaining. */ public Builder setAccessKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessKey_ = value; onChanged(); return this; } private com.volcengine.model.maas.api.Api.BypassIdentity identity_; private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.BypassIdentity, com.volcengine.model.maas.api.Api.BypassIdentity.Builder, com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder> identityBuilder_; /** * .api.BypassIdentity identity = 2; * @return Whether the identity field is set. */ public boolean hasIdentity() { return identityBuilder_ != null || identity_ != null; } /** * .api.BypassIdentity identity = 2; * @return The identity. */ public com.volcengine.model.maas.api.Api.BypassIdentity getIdentity() { if (identityBuilder_ == null) { return identity_ == null ? com.volcengine.model.maas.api.Api.BypassIdentity.getDefaultInstance() : identity_; } else { return identityBuilder_.getMessage(); } } /** * .api.BypassIdentity identity = 2; */ public Builder setIdentity(com.volcengine.model.maas.api.Api.BypassIdentity value) { if (identityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); } else { identityBuilder_.setMessage(value); } return this; } /** * .api.BypassIdentity identity = 2; */ public Builder setIdentity( com.volcengine.model.maas.api.Api.BypassIdentity.Builder builderForValue) { if (identityBuilder_ == null) { identity_ = builderForValue.build(); onChanged(); } else { identityBuilder_.setMessage(builderForValue.build()); } return this; } /** * .api.BypassIdentity identity = 2; */ public Builder mergeIdentity(com.volcengine.model.maas.api.Api.BypassIdentity value) { if (identityBuilder_ == null) { if (identity_ != null) { identity_ = com.volcengine.model.maas.api.Api.BypassIdentity.newBuilder(identity_).mergeFrom(value).buildPartial(); } else { identity_ = value; } onChanged(); } else { identityBuilder_.mergeFrom(value); } return this; } /** * .api.BypassIdentity identity = 2; */ public Builder clearIdentity() { if (identityBuilder_ == null) { identity_ = null; onChanged(); } else { identity_ = null; identityBuilder_ = null; } return this; } /** * .api.BypassIdentity identity = 2; */ public com.volcengine.model.maas.api.Api.BypassIdentity.Builder getIdentityBuilder() { onChanged(); return getIdentityFieldBuilder().getBuilder(); } /** * .api.BypassIdentity identity = 2; */ public com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder getIdentityOrBuilder() { if (identityBuilder_ != null) { return identityBuilder_.getMessageOrBuilder(); } else { return identity_ == null ? com.volcengine.model.maas.api.Api.BypassIdentity.getDefaultInstance() : identity_; } } /** * .api.BypassIdentity identity = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.BypassIdentity, com.volcengine.model.maas.api.Api.BypassIdentity.Builder, com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder> getIdentityFieldBuilder() { if (identityBuilder_ == null) { identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.volcengine.model.maas.api.Api.BypassIdentity, com.volcengine.model.maas.api.Api.BypassIdentity.Builder, com.volcengine.model.maas.api.Api.BypassIdentityOrBuilder>( getIdentity(), getParentForChildren(), isClean()); identity_ = null; } return identityBuilder_; } @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:api.InnerBypassGetIdentityResp) } // @@protoc_insertion_point(class_scope:api.InnerBypassGetIdentityResp) private static final com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp(); } public static com.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InnerBypassGetIdentityResp 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.volcengine.model.maas.api.Api.InnerBypassGetIdentityResp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_FunctionCall_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_FunctionCall_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_TopLogprobsItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_TopLogprobsItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_TopLogprobsItem_ItemEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_TopLogprobsItem_ItemEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Logprobs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Logprobs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Message_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Message_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Reference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Reference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Model_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Model_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ErrorResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ErrorResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Choice_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Choice_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Usage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Usage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Function_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Function_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ChatReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ChatReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ChatReq_ExtraEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ChatReq_ExtraEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_TokenizeReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_TokenizeReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_TokenizeResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_TokenizeResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_LabelLogprobosValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_LabelLogprobosValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ClassificationReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ClassificationReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ClassificationResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ClassificationResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ClassificationResp_LabelLogprobosEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ClassificationResp_LabelLogprobosEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ChatResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ChatResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ChatResp_ExtraEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ChatResp_ExtraEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_CertReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_CertReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_CertResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_CertResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_EmbeddingsReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_EmbeddingsReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_Embedding_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_Embedding_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_EmbeddingsResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_EmbeddingsResp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_ListString_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_ListString_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_InnerBypassGetIdentityReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_InnerBypassGetIdentityReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_InnerBypassGetIdentityReq_QueryEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_InnerBypassGetIdentityReq_QueryEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_InnerBypassGetIdentityReq_HeaderEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_InnerBypassGetIdentityReq_HeaderEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_BypassIdentity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_BypassIdentity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_api_InnerBypassGetIdentityResp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_api_InnerBypassGetIdentityResp_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\013proxy.proto\022\003api\032\nbase.proto\032\034google/p" + "rotobuf/struct.proto\"/\n\014FunctionCall\022\014\n\004" + "name\030\001 \001(\t\022\021\n\targuments\030\002 \001(\t\"l\n\017TopLogp" + "robsItem\022,\n\004item\030\001 \003(\0132\036.api.TopLogprobs" + "Item.ItemEntry\032+\n\tItemEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\002:\0028\001\"y\n\010Logprobs\022\023\n\013text_" + "offset\030\001 \003(\003\022\026\n\016token_logprobs\030\002 \003(\001\022\016\n\006" + "tokens\030\003 \003(\t\0220\n\014top_logprobs\030\004 \001(\0132\032.goo" + "gle.protobuf.ListValue\"\204\001\n\007Message\022\014\n\004ro" + "le\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\022\014\n\004name\030\004 \001(\t\022" + "(\n\rfunction_call\030\005 \001(\0132\021.api.FunctionCal" + "l\022\"\n\nreferences\030\003 \003(\0132\016.api.Reference\"Z\n" + "\tReference\022\013\n\003url\030\001 \001(\t\022\013\n\003idx\030\002 \001(\005\022\020\n\010" + "logo_url\030\003 \001(\t\022\016\n\006pc_url\030\004 \001(\t\022\021\n\tsite_n" + "ame\030\005 \001(\t\";\n\005Model\022\014\n\004name\030\001 \001(\t\022\023\n\013endp" + "oint_id\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\"6\n\005Error\022" + "\014\n\004code\030\001 \001(\t\022\016\n\006code_n\030\002 \001(\005\022\017\n\007message" + "\030\003 \001(\t\"6\n\tErrorResp\022\031\n\005error\030\001 \001(\0132\n.api" + ".Error\022\016\n\006req_id\030\002 \001(\t\"n\n\006Choice\022\r\n\005inde" + "x\030\001 \001(\005\022\035\n\007message\030\002 \001(\0132\014.api.Message\022\025" + "\n\rfinish_reason\030\003 \001(\t\022\037\n\010logprobs\030\004 \001(\0132" + "\r.api.Logprobs\"\252\004\n\nParameters\022\030\n\013tempera" + "ture\030\001 \001(\002H\000\210\001\001\022\027\n\nmax_tokens\030\002 \001(\003H\001\210\001\001" + "\022\022\n\005top_p\030\003 \001(\002H\002\210\001\001\022\035\n\020presence_penalty" + "\030\004 \001(\002H\003\210\001\001\022\036\n\021frequency_penalty\030\005 \001(\002H\004" + "\210\001\001\022\033\n\016max_new_tokens\030\006 \001(\003H\005\210\001\001\022\037\n\022repe" + "tition_penalty\030\007 \001(\002H\006\210\001\001\022\026\n\tdo_sample\030\010" + " \001(\010H\007\210\001\001\022\022\n\005top_k\030\t \001(\003H\010\210\001\001\022\033\n\016min_new" + "_tokens\030\n \001(\003H\t\210\001\001\022\036\n\021max_prompt_tokens\030" + "\013 \001(\003H\n\210\001\001\022\025\n\010logprobs\030\014 \001(\003H\013\210\001\001\022\014\n\004sto" + "p\030\r \003(\tB\016\n\014_temperatureB\r\n\013_max_tokensB\010" + "\n\006_top_pB\023\n\021_presence_penaltyB\024\n\022_freque" + "ncy_penaltyB\021\n\017_max_new_tokensB\025\n\023_repet" + "ition_penaltyB\014\n\n_do_sampleB\010\n\006_top_kB\021\n" + "\017_min_new_tokensB\024\n\022_max_prompt_tokensB\013" + "\n\t_logprobs\"O\n\005Usage\022\025\n\rprompt_tokens\030\001 " + "\001(\003\022\031\n\021completion_tokens\030\002 \001(\003\022\024\n\014total_" + "tokens\030\003 \001(\003\"l\n\010Function\022\014\n\004name\030\001 \001(\t\022\023" + "\n\013description\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132" + "\027.google.protobuf.Struct\022\020\n\010examples\030\004 \003" + "(\t\"\322\002\n\007ChatReq\022\031\n\005model\030\001 \001(\0132\n.api.Mode" + "l\022\036\n\010messages\030\002 \003(\0132\014.api.Message\022#\n\npar" + "ameters\030\003 \001(\0132\017.api.Parameters\022\016\n\006stream" + "\030\004 \001(\010\022\016\n\006req_id\030\005 \001(\t\022.\n\014crypto_token\030\006" + " \001(\tB\030\272\273\030\024Ml-Maas-Crypto-Token\022 \n\tfuncti" + "ons\030\007 \003(\0132\r.api.Function\022\017\n\007plugins\030\010 \003(" + "\t\022\016\n\006method\030\t \001(\t\022&\n\005extra\030d \003(\0132\027.api.C" + "hatReq.ExtraEntry\032,\n\nExtraEntry\022\013\n\003key\030\001" + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\013TokenizeReq\022\031" + "\n\005model\030\001 \001(\0132\n.api.Model\022\016\n\006req_id\030\002 \001(" + "\t\022\014\n\004text\030\003 \001(\t\"_\n\014TokenizeResp\022\024\n\014total" + "_tokens\030\001 \001(\003\022\016\n\006tokens\030\002 \003(\t\022\016\n\006req_id\030" + "\003 \001(\t\022\031\n\005error\030\004 \001(\0132\n.api.Error\"M\n\023Labe" + "lLogprobosValue\022\016\n\006tokens\030\001 \003(\t\022\026\n\016token" + "_logprobs\030\002 \003(\001\022\016\n\006req_id\030\003 \001(\t\"]\n\021Class" + "ificationReq\022\031\n\005model\030\001 \001(\0132\n.api.Model\022" + "\016\n\006req_id\030\002 \001(\t\022\r\n\005query\030\003 \001(\t\022\016\n\006labels" + "\030\004 \003(\t\"\200\002\n\022ClassificationResp\022\r\n\005label\030\001" + " \001(\t\022D\n\017label_logprobos\030\002 \003(\0132+.api.Clas" + "sificationResp.LabelLogprobosEntry\022\031\n\005us" + "age\030\003 \001(\0132\n.api.Usage\022\016\n\006req_id\030\004 \001(\t\022\031\n" + "\005error\030\005 \001(\0132\n.api.Error\032O\n\023LabelLogprob" + "osEntry\022\013\n\003key\030\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.ap" + "i.LabelLogprobosValue:\0028\001\"\304\001\n\010ChatResp\022\016" + "\n\006req_id\030\001 \001(\t\022\031\n\005error\030\002 \001(\0132\n.api.Erro" + "r\022\033\n\006choice\030\003 \001(\0132\013.api.Choice\022\031\n\005usage\030" + "\004 \001(\0132\n.api.Usage\022\'\n\005extra\030d \003(\0132\030.api.C" + "hatResp.ExtraEntry\032,\n\nExtraEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"$\n\007CertReq\022\031\n\005m" + "odel\030\001 \001(\0132\n.api.Model\"3\n\010CertResp\022\031\n\005mo" + "del\030\001 \001(\0132\n.api.Model\022\014\n\004cert\030\002 \001(\t\"\227\001\n\r" + "EmbeddingsReq\022\016\n\006req_id\030\001 \001(\t\022\r\n\005input\030\002" + " \003(\t\022\031\n\005model\030\003 \001(\0132\n.api.Model\022\034\n\017encod" + "ing_format\030\004 \001(\tH\000\210\001\001\022\021\n\004user\030\005 \001(\tH\001\210\001\001" + "B\022\n\020_encoding_formatB\007\n\005_user\"=\n\tEmbeddi" + "ng\022\r\n\005index\030\001 \001(\003\022\021\n\tembedding\030\002 \003(\001\022\016\n\006" + "object\030\003 \001(\t\"\237\001\n\016EmbeddingsResp\022\016\n\006req_i" + "d\030\001 \001(\t\022\016\n\006object\030\002 \001(\t\022\034\n\004data\030\003 \003(\0132\016." + "api.Embedding\022\031\n\005model\030\004 \001(\0132\n.api.Model" + "\022\031\n\005usage\030\005 \001(\0132\n.api.Usage\022\031\n\005error\030\006 \001" + "(\0132\n.api.Error\"\034\n\nListString\022\016\n\006values\030\001" + " \003(\t\"\257\002\n\031InnerBypassGetIdentityReq\022\016\n\006me" + "thod\030\001 \001(\t\022\021\n\tbody_hash\030\002 \001(\t\022\013\n\003uri\030\003 \001" + "(\t\0228\n\005query\030\004 \003(\0132).api.InnerBypassGetId" + "entityReq.QueryEntry\022:\n\006header\030\005 \003(\0132*.a" + "pi.InnerBypassGetIdentityReq.HeaderEntry" + "\032=\n\nQueryEntry\022\013\n\003key\030\001 \001(\t\022\036\n\005value\030\002 \001" + "(\0132\017.api.ListString:\0028\001\032-\n\013HeaderEntry\022\013" + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\230\001\n\016Bypas" + "sIdentity\022\022\n\naccount_id\030\001 \001(\004\022\023\n\013identit" + "y_id\030\002 \001(\004\022\025\n\ridentity_type\030\003 \001(\t\022\025\n\ride" + "ntity_name\030\004 \001(\t\022\017\n\007channel\030\005 \001(\t\022\036\n\026ori" + "ginal_identity_type\030\006 \001(\t\"W\n\032InnerBypass" + "GetIdentityResp\022\022\n\naccess_key\030\001 \001(\t\022%\n\010i" + "dentity\030\002 \001(\0132\023.api.BypassIdentity2\362\002\n\nA" + "PIService\0224\n\004Chat\022\014.api.ChatReq\032\r.api.Ch" + "atResp\"\017\322\301\030\013api/v1/chat\0224\n\004Cert\022\014.api.Ce" + "rtReq\032\r.api.CertResp\"\017\322\301\030\013api/v1/cert\022L\n" + "\014Tokenization\022\020.api.TokenizeReq\032\021.api.To" + "kenizeResp\"\027\322\301\030\023api/v1/tokenization\022\\\n\016C" + "lassification\022\026.api.ClassificationReq\032\027." + "api.ClassificationResp\"\031\322\301\030\025api/v1/class" + "ification\022L\n\nEmbeddings\022\022.api.Embeddings" + "Req\032\023.api.EmbeddingsResp\"\025\322\301\030\021api/v1/emb" + "eddingsBY\n\035com.volcengine.model.maas.api" + "B\003ApiZ3code.byted.org/data/llmflow/app/p" + "roxy/biz/model/apib\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.volcengine.model.maas.Base.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); internal_static_api_FunctionCall_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_api_FunctionCall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_FunctionCall_descriptor, new java.lang.String[] { "Name", "Arguments", }); internal_static_api_TopLogprobsItem_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_api_TopLogprobsItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_TopLogprobsItem_descriptor, new java.lang.String[] { "Item", }); internal_static_api_TopLogprobsItem_ItemEntry_descriptor = internal_static_api_TopLogprobsItem_descriptor.getNestedTypes().get(0); internal_static_api_TopLogprobsItem_ItemEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_TopLogprobsItem_ItemEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_api_Logprobs_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_api_Logprobs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Logprobs_descriptor, new java.lang.String[] { "TextOffset", "TokenLogprobs", "Tokens", "TopLogprobs", }); internal_static_api_Message_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_api_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Message_descriptor, new java.lang.String[] { "Role", "Content", "Name", "FunctionCall", "References", }); internal_static_api_Reference_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_api_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Reference_descriptor, new java.lang.String[] { "Url", "Idx", "LogoUrl", "PcUrl", "SiteName", }); internal_static_api_Model_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_api_Model_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Model_descriptor, new java.lang.String[] { "Name", "EndpointId", "Version", }); internal_static_api_Error_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_api_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Error_descriptor, new java.lang.String[] { "Code", "CodeN", "Message", }); internal_static_api_ErrorResp_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_api_ErrorResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ErrorResp_descriptor, new java.lang.String[] { "Error", "ReqId", }); internal_static_api_Choice_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_api_Choice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Choice_descriptor, new java.lang.String[] { "Index", "Message", "FinishReason", "Logprobs", }); internal_static_api_Parameters_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_api_Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Parameters_descriptor, new java.lang.String[] { "Temperature", "MaxTokens", "TopP", "PresencePenalty", "FrequencyPenalty", "MaxNewTokens", "RepetitionPenalty", "DoSample", "TopK", "MinNewTokens", "MaxPromptTokens", "Logprobs", "Stop", "Temperature", "MaxTokens", "TopP", "PresencePenalty", "FrequencyPenalty", "MaxNewTokens", "RepetitionPenalty", "DoSample", "TopK", "MinNewTokens", "MaxPromptTokens", "Logprobs", }); internal_static_api_Usage_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_api_Usage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Usage_descriptor, new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", }); internal_static_api_Function_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_api_Function_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Function_descriptor, new java.lang.String[] { "Name", "Description", "Parameters", "Examples", }); internal_static_api_ChatReq_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_api_ChatReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ChatReq_descriptor, new java.lang.String[] { "Model", "Messages", "Parameters", "Stream", "ReqId", "CryptoToken", "Functions", "Plugins", "Method", "Extra", }); internal_static_api_ChatReq_ExtraEntry_descriptor = internal_static_api_ChatReq_descriptor.getNestedTypes().get(0); internal_static_api_ChatReq_ExtraEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ChatReq_ExtraEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_api_TokenizeReq_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_api_TokenizeReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_TokenizeReq_descriptor, new java.lang.String[] { "Model", "ReqId", "Text", }); internal_static_api_TokenizeResp_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_api_TokenizeResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_TokenizeResp_descriptor, new java.lang.String[] { "TotalTokens", "Tokens", "ReqId", "Error", }); internal_static_api_LabelLogprobosValue_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_api_LabelLogprobosValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_LabelLogprobosValue_descriptor, new java.lang.String[] { "Tokens", "TokenLogprobs", "ReqId", }); internal_static_api_ClassificationReq_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_api_ClassificationReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ClassificationReq_descriptor, new java.lang.String[] { "Model", "ReqId", "Query", "Labels", }); internal_static_api_ClassificationResp_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_api_ClassificationResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ClassificationResp_descriptor, new java.lang.String[] { "Label", "LabelLogprobos", "Usage", "ReqId", "Error", }); internal_static_api_ClassificationResp_LabelLogprobosEntry_descriptor = internal_static_api_ClassificationResp_descriptor.getNestedTypes().get(0); internal_static_api_ClassificationResp_LabelLogprobosEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ClassificationResp_LabelLogprobosEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_api_ChatResp_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_api_ChatResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ChatResp_descriptor, new java.lang.String[] { "ReqId", "Error", "Choice", "Usage", "Extra", }); internal_static_api_ChatResp_ExtraEntry_descriptor = internal_static_api_ChatResp_descriptor.getNestedTypes().get(0); internal_static_api_ChatResp_ExtraEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ChatResp_ExtraEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_api_CertReq_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_api_CertReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_CertReq_descriptor, new java.lang.String[] { "Model", }); internal_static_api_CertResp_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_api_CertResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_CertResp_descriptor, new java.lang.String[] { "Model", "Cert", }); internal_static_api_EmbeddingsReq_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_api_EmbeddingsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_EmbeddingsReq_descriptor, new java.lang.String[] { "ReqId", "Input", "Model", "EncodingFormat", "User", "EncodingFormat", "User", }); internal_static_api_Embedding_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_api_Embedding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_Embedding_descriptor, new java.lang.String[] { "Index", "Embedding", "Object", }); internal_static_api_EmbeddingsResp_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_api_EmbeddingsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_EmbeddingsResp_descriptor, new java.lang.String[] { "ReqId", "Object", "Data", "Model", "Usage", "Error", }); internal_static_api_ListString_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_api_ListString_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_ListString_descriptor, new java.lang.String[] { "Values", }); internal_static_api_InnerBypassGetIdentityReq_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_api_InnerBypassGetIdentityReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_InnerBypassGetIdentityReq_descriptor, new java.lang.String[] { "Method", "BodyHash", "Uri", "Query", "Header", }); internal_static_api_InnerBypassGetIdentityReq_QueryEntry_descriptor = internal_static_api_InnerBypassGetIdentityReq_descriptor.getNestedTypes().get(0); internal_static_api_InnerBypassGetIdentityReq_QueryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_InnerBypassGetIdentityReq_QueryEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_api_InnerBypassGetIdentityReq_HeaderEntry_descriptor = internal_static_api_InnerBypassGetIdentityReq_descriptor.getNestedTypes().get(1); internal_static_api_InnerBypassGetIdentityReq_HeaderEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_InnerBypassGetIdentityReq_HeaderEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_api_BypassIdentity_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_api_BypassIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_BypassIdentity_descriptor, new java.lang.String[] { "AccountId", "IdentityId", "IdentityType", "IdentityName", "Channel", "OriginalIdentityType", }); internal_static_api_InnerBypassGetIdentityResp_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_api_InnerBypassGetIdentityResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_api_InnerBypassGetIdentityResp_descriptor, new java.lang.String[] { "AccessKey", "Identity", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.volcengine.model.maas.Base.header); registry.add(com.volcengine.model.maas.Base.post); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.volcengine.model.maas.Base.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy