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

com.lark.oapi.ws.pb.Pbbp2 Maven / Gradle / Ivy

Go to download

Larksuite open platform facilitates the integration of enterprise applications and larksuite, making collaboration and management more efficient

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pbbp2.proto

package com.lark.oapi.ws.pb;

public final class Pbbp2 {
    private static final com.lark.oapi.google.protobuf.Descriptors.Descriptor
            internal_static_pbbp2_Header_descriptor;
    private static final
    com.lark.oapi.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internal_static_pbbp2_Header_fieldAccessorTable;
    private static final com.lark.oapi.google.protobuf.Descriptors.Descriptor
            internal_static_pbbp2_Frame_descriptor;
    private static final
    com.lark.oapi.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internal_static_pbbp2_Frame_fieldAccessorTable;
    private static com.lark.oapi.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        String[] descriptorData = {
                "\n\013pbbp2.proto\022\005pbbp2\032\ngogo.proto\"$\n\006Head" +
                        "er\022\013\n\003key\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\"\277\001\n\005Frame" +
                        "\022\r\n\005SeqID\030\001 \002(\004\022\r\n\005LogID\030\002 \002(\004\022\017\n\007servic" +
                        "e\030\003 \002(\005\022\016\n\006method\030\004 \002(\005\022$\n\007headers\030\005 \003(\013" +
                        "2\r.pbbp2.HeaderB\004\310\336\037\000\022\030\n\020payload_encodin" +
                        "g\030\006 \001(\t\022\024\n\014payload_type\030\007 \001(\t\022\017\n\007payload" +
                        "\030\010 \001(\014\022\020\n\010LogIDNew\030\t \001(\tB\025\n\023com.lark.oap" +
                        "i.ws.pb"
        };
        descriptor = com.lark.oapi.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.lark.oapi.google.protobuf.Descriptors.FileDescriptor[]{
                                GoGoProtos.getDescriptor(),
                        });
        internal_static_pbbp2_Header_descriptor =
                getDescriptor().getMessageTypes().get(0);
        internal_static_pbbp2_Header_fieldAccessorTable = new
                com.lark.oapi.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                internal_static_pbbp2_Header_descriptor,
                new String[]{"Key", "Value",});
        internal_static_pbbp2_Frame_descriptor =
                getDescriptor().getMessageTypes().get(1);
        internal_static_pbbp2_Frame_fieldAccessorTable = new
                com.lark.oapi.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                internal_static_pbbp2_Frame_descriptor,
                new String[]{"SeqID", "LogID", "Service", "Method", "Headers", "PayloadEncoding", "PayloadType", "Payload", "LogIDNew",});
        com.lark.oapi.google.protobuf.ExtensionRegistry registry =
                com.lark.oapi.google.protobuf.ExtensionRegistry.newInstance();
        registry.add(GoGoProtos.nullable);
        com.lark.oapi.google.protobuf.Descriptors.FileDescriptor
                .internalUpdateFileDescriptor(descriptor, registry);
        GoGoProtos.getDescriptor();
    }

    private Pbbp2() {
    }

    public static void registerAllExtensions(
            com.lark.oapi.google.protobuf.ExtensionRegistryLite registry) {
    }

    public static void registerAllExtensions(
            com.lark.oapi.google.protobuf.ExtensionRegistry registry) {
        registerAllExtensions(
                (com.lark.oapi.google.protobuf.ExtensionRegistryLite) registry);
    }

    public static com.lark.oapi.google.protobuf.Descriptors.FileDescriptor
    getDescriptor() {
        return descriptor;
    }

    public interface HeaderOrBuilder extends
            // @@protoc_insertion_point(interface_extends:pbbp2.Header)
            com.lark.oapi.google.protobuf.MessageOrBuilder {

        /**
         * required string key = 1;
         *
         * @return Whether the key field is set.
         */
        boolean hasKey();

        /**
         * required string key = 1;
         *
         * @return The key.
         */
        String getKey();

        /**
         * required string key = 1;
         *
         * @return The bytes for key.
         */
        com.lark.oapi.google.protobuf.ByteString
        getKeyBytes();

        /**
         * required string value = 2;
         *
         * @return Whether the value field is set.
         */
        boolean hasValue();

        /**
         * required string value = 2;
         *
         * @return The value.
         */
        String getValue();

        /**
         * required string value = 2;
         *
         * @return The bytes for value.
         */
        com.lark.oapi.google.protobuf.ByteString
        getValueBytes();
    }

    public interface FrameOrBuilder extends
            // @@protoc_insertion_point(interface_extends:pbbp2.Frame)
            com.lark.oapi.google.protobuf.MessageOrBuilder {

        /**
         * required uint64 SeqID = 1;
         *
         * @return Whether the seqID field is set.
         */
        boolean hasSeqID();

        /**
         * required uint64 SeqID = 1;
         *
         * @return The seqID.
         */
        long getSeqID();

        /**
         * required uint64 LogID = 2;
         *
         * @return Whether the logID field is set.
         */
        boolean hasLogID();

        /**
         * required uint64 LogID = 2;
         *
         * @return The logID.
         */
        long getLogID();

        /**
         * required int32 service = 3;
         *
         * @return Whether the service field is set.
         */
        boolean hasService();

        /**
         * required int32 service = 3;
         *
         * @return The service.
         */
        int getService();

        /**
         * required int32 method = 4;
         *
         * @return Whether the method field is set.
         */
        boolean hasMethod();

        /**
         * required int32 method = 4;
         *
         * @return The method.
         */
        int getMethod();

        /**
         * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false];
         */
        java.util.List
getHeadersList(); /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ Header getHeaders(int index); /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ int getHeadersCount(); /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ java.util.List getHeadersOrBuilderList(); /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ HeaderOrBuilder getHeadersOrBuilder( int index); /** *
         * http like content-encoding, eg: gzip or none
         * 
* * optional string payload_encoding = 6; * * @return Whether the payloadEncoding field is set. */ boolean hasPayloadEncoding(); /** *
         * http like content-encoding, eg: gzip or none
         * 
* * optional string payload_encoding = 6; * * @return The payloadEncoding. */ String getPayloadEncoding(); /** *
         * http like content-encoding, eg: gzip or none
         * 
* * optional string payload_encoding = 6; * * @return The bytes for payloadEncoding. */ com.lark.oapi.google.protobuf.ByteString getPayloadEncodingBytes(); /** *
         * http like content-type
         * 
* * optional string payload_type = 7; * * @return Whether the payloadType field is set. */ boolean hasPayloadType(); /** *
         * http like content-type
         * 
* * optional string payload_type = 7; * * @return The payloadType. */ String getPayloadType(); /** *
         * http like content-type
         * 
* * optional string payload_type = 7; * * @return The bytes for payloadType. */ com.lark.oapi.google.protobuf.ByteString getPayloadTypeBytes(); /** *
         * http like body
         * 
* * optional bytes payload = 8; * * @return Whether the payload field is set. */ boolean hasPayload(); /** *
         * http like body
         * 
* * optional bytes payload = 8; * * @return The payload. */ com.lark.oapi.google.protobuf.ByteString getPayload(); /** * optional string LogIDNew = 9; * * @return Whether the logIDNew field is set. */ boolean hasLogIDNew(); /** * optional string LogIDNew = 9; * * @return The logIDNew. */ String getLogIDNew(); /** * optional string LogIDNew = 9; * * @return The bytes for logIDNew. */ com.lark.oapi.google.protobuf.ByteString getLogIDNewBytes(); } /** * Protobuf type {@code pbbp2.Header} */ public static final class Header extends com.lark.oapi.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pbbp2.Header) HeaderOrBuilder { public static final int KEY_FIELD_NUMBER = 1; public static final int VALUE_FIELD_NUMBER = 2; @Deprecated public static final com.lark.oapi.google.protobuf.Parser
PARSER = new com.lark.oapi.google.protobuf.AbstractParser
() { @Override public Header parsePartialFrom( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return new Header(input, extensionRegistry); } }; private static final long serialVersionUID = 0L; // @@protoc_insertion_point(class_scope:pbbp2.Header) private static final Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Header(); } private int bitField0_; private volatile Object key_; private volatile Object value_; private byte memoizedIsInitialized = -1; // Use Header.newBuilder() to construct. private Header(com.lark.oapi.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Header() { key_ = ""; value_ = ""; } private Header( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new NullPointerException(); } int mutable_bitField0_ = 0; com.lark.oapi.google.protobuf.UnknownFieldSet.Builder unknownFields = com.lark.oapi.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.lark.oapi.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; key_ = bs; break; } case 18: { com.lark.oapi.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; value_ = bs; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.lark.oapi.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.lark.oapi.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.lark.oapi.google.protobuf.Descriptors.Descriptor getDescriptor() { return Pbbp2.internal_static_pbbp2_Header_descriptor; } public static Header parseFrom( java.nio.ByteBuffer data) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Header parseFrom( java.nio.ByteBuffer data, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Header parseFrom( com.lark.oapi.google.protobuf.ByteString data) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Header parseFrom( com.lark.oapi.google.protobuf.ByteString data, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Header parseFrom(byte[] data) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Header parseFrom( byte[] data, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Header parseFrom(java.io.InputStream input) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Header parseFrom( java.io.InputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static Header parseDelimitedFrom( java.io.InputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Header parseFrom( com.lark.oapi.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Header parseFrom( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public static Header getDefaultInstance() { return DEFAULT_INSTANCE; } public static com.lark.oapi.google.protobuf.Parser
parser() { return PARSER; } @Override @SuppressWarnings({"unused"}) protected Object newInstance( UnusedPrivateParameter unused) { return new Header(); } @Override public final com.lark.oapi.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Pbbp2.internal_static_pbbp2_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( Header.class, Builder.class); } /** * required string key = 1; * * @return Whether the key field is set. */ @Override public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** * required string key = 1; * * @return The key. */ @Override public String getKey() { Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } } /** * required string key = 1; * * @return The bytes for key. */ @Override public com.lark.oapi.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); key_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** * required string value = 2; * * @return Whether the value field is set. */ @Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * required string value = 2; * * @return The value. */ @Override public String getValue() { Object ref = value_; if (ref instanceof String) { return (String) ref; } else { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } } /** * required string value = 2; * * @return The bytes for value. */ @Override public com.lark.oapi.google.protobuf.ByteString getValueBytes() { Object ref = value_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); value_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @Override public void writeTo(com.lark.oapi.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.lark.oapi.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000002) != 0)) { com.lark.oapi.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.lark.oapi.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.lark.oapi.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Header)) { return super.equals(obj); } Header other = (Header) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } @Override public Builder newBuilderForType() { return newBuilder(); } @Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @Override public com.lark.oapi.google.protobuf.Parser
getParserForType() { return PARSER; } @Override public Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } /** * Protobuf type {@code pbbp2.Header} */ public static final class Builder extends com.lark.oapi.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pbbp2.Header) HeaderOrBuilder { private int bitField0_; private Object key_ = ""; private Object value_ = ""; // Construct using com.lark.oapi.ws.pb.Pbbp2.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } public static final com.lark.oapi.google.protobuf.Descriptors.Descriptor getDescriptor() { return Pbbp2.internal_static_pbbp2_Header_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Pbbp2.internal_static_pbbp2_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( Header.class, Builder.class); } private void maybeForceBuilderInitialization() { if (com.lark.oapi.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @Override public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @Override public com.lark.oapi.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Pbbp2.internal_static_pbbp2_Header_descriptor; } @Override public Header getDefaultInstanceForType() { return Header.getDefaultInstance(); } @Override public Header build() { Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public Header buildPartial() { Header result = new Header(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @Override public Builder clone() { return super.clone(); } @Override public Builder setField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.setField(field, value); } @Override public Builder clearField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @Override public Builder clearOneof( com.lark.oapi.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @Override public Builder setRepeatedField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return super.setRepeatedField(field, index, value); } @Override public Builder addRepeatedField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.addRepeatedField(field, value); } @Override public Builder mergeFrom(com.lark.oapi.google.protobuf.Message other) { if (other instanceof Header) { return mergeFrom((Header) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Header other) { if (other == Header.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @Override public final boolean isInitialized() { if (!hasKey()) { return false; } if (!hasValue()) { return false; } return true; } @Override public Builder mergeFrom( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Header parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.lark.oapi.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } /** * required string key = 1; * * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** * required string key = 1; * * @return The key. */ public String getKey() { Object ref = key_; if (!(ref instanceof String)) { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } else { return (String) ref; } } /** * required string key = 1; * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * required string key = 1; * * @return The bytes for key. */ public com.lark.oapi.google.protobuf.ByteString getKeyBytes() { Object ref = key_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); key_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** * required string key = 1; * * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.lark.oapi.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * required string key = 1; * * @return This builder for chaining. */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * required string value = 2; * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * required string value = 2; * * @return The value. */ public String getValue() { Object ref = value_; if (!(ref instanceof String)) { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } else { return (String) ref; } } /** * required string value = 2; * * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * required string value = 2; * * @return The bytes for value. */ public com.lark.oapi.google.protobuf.ByteString getValueBytes() { Object ref = value_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); value_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** * required string value = 2; * * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.lark.oapi.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * required string value = 2; * * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } @Override public final Builder setUnknownFields( final com.lark.oapi.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @Override public final Builder mergeUnknownFields( final com.lark.oapi.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pbbp2.Header) } } /** *
     * message frame
     * 
*

* Protobuf type {@code pbbp2.Frame} */ public static final class Frame extends com.lark.oapi.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pbbp2.Frame) FrameOrBuilder { public static final int SEQID_FIELD_NUMBER = 1; public static final int LOGID_FIELD_NUMBER = 2; public static final int SERVICE_FIELD_NUMBER = 3; public static final int METHOD_FIELD_NUMBER = 4; public static final int HEADERS_FIELD_NUMBER = 5; public static final int PAYLOAD_ENCODING_FIELD_NUMBER = 6; public static final int PAYLOAD_TYPE_FIELD_NUMBER = 7; public static final int PAYLOAD_FIELD_NUMBER = 8; public static final int LOGIDNEW_FIELD_NUMBER = 9; @Deprecated public static final com.lark.oapi.google.protobuf.Parser PARSER = new com.lark.oapi.google.protobuf.AbstractParser() { @Override public Frame parsePartialFrom( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return new Frame(input, extensionRegistry); } }; private static final long serialVersionUID = 0L; // @@protoc_insertion_point(class_scope:pbbp2.Frame) private static final Frame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Frame(); } private int bitField0_; private long seqID_; private long logID_; private int service_; private int method_; private java.util.List

headers_; private volatile Object payloadEncoding_; private volatile Object payloadType_; private com.lark.oapi.google.protobuf.ByteString payload_; private volatile Object logIDNew_; private byte memoizedIsInitialized = -1; // Use Frame.newBuilder() to construct. private Frame(com.lark.oapi.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Frame() { headers_ = java.util.Collections.emptyList(); payloadEncoding_ = ""; payloadType_ = ""; payload_ = com.lark.oapi.google.protobuf.ByteString.EMPTY; logIDNew_ = ""; } private Frame( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new NullPointerException(); } int mutable_bitField0_ = 0; com.lark.oapi.google.protobuf.UnknownFieldSet.Builder unknownFields = com.lark.oapi.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; seqID_ = input.readUInt64(); break; } case 16: { bitField0_ |= 0x00000002; logID_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000004; service_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; method_ = input.readInt32(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { headers_ = new java.util.ArrayList
(); mutable_bitField0_ |= 0x00000010; } headers_.add( input.readMessage(Header.PARSER, extensionRegistry)); break; } case 50: { com.lark.oapi.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; payloadEncoding_ = bs; break; } case 58: { com.lark.oapi.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; payloadType_ = bs; break; } case 66: { bitField0_ |= 0x00000040; payload_ = input.readBytes(); break; } case 74: { com.lark.oapi.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; logIDNew_ = bs; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.lark.oapi.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.lark.oapi.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.lark.oapi.google.protobuf.Descriptors.Descriptor getDescriptor() { return Pbbp2.internal_static_pbbp2_Frame_descriptor; } public static Frame parseFrom( java.nio.ByteBuffer data) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Frame parseFrom( java.nio.ByteBuffer data, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Frame parseFrom( com.lark.oapi.google.protobuf.ByteString data) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Frame parseFrom( com.lark.oapi.google.protobuf.ByteString data, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Frame parseFrom(byte[] data) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Frame parseFrom( byte[] data, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.lark.oapi.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Frame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Frame parseFrom( java.io.InputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static Frame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static Frame parseDelimitedFrom( java.io.InputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Frame parseFrom( com.lark.oapi.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Frame parseFrom( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.lark.oapi.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(Frame prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public static Frame getDefaultInstance() { return DEFAULT_INSTANCE; } public static com.lark.oapi.google.protobuf.Parser parser() { return PARSER; } @Override @SuppressWarnings({"unused"}) protected Object newInstance( UnusedPrivateParameter unused) { return new Frame(); } @Override public final com.lark.oapi.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Pbbp2.internal_static_pbbp2_Frame_fieldAccessorTable .ensureFieldAccessorsInitialized( Frame.class, Builder.class); } /** * required uint64 SeqID = 1; * * @return Whether the seqID field is set. */ @Override public boolean hasSeqID() { return ((bitField0_ & 0x00000001) != 0); } /** * required uint64 SeqID = 1; * * @return The seqID. */ @Override public long getSeqID() { return seqID_; } /** * required uint64 LogID = 2; * * @return Whether the logID field is set. */ @Override public boolean hasLogID() { return ((bitField0_ & 0x00000002) != 0); } /** * required uint64 LogID = 2; * * @return The logID. */ @Override public long getLogID() { return logID_; } /** * required int32 service = 3; * * @return Whether the service field is set. */ @Override public boolean hasService() { return ((bitField0_ & 0x00000004) != 0); } /** * required int32 service = 3; * * @return The service. */ @Override public int getService() { return service_; } /** * required int32 method = 4; * * @return Whether the method field is set. */ @Override public boolean hasMethod() { return ((bitField0_ & 0x00000008) != 0); } /** * required int32 method = 4; * * @return The method. */ @Override public int getMethod() { return method_; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ @Override public java.util.List
getHeadersList() { return headers_; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ @Override public java.util.List getHeadersOrBuilderList() { return headers_; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ @Override public int getHeadersCount() { return headers_.size(); } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ @Override public Header getHeaders(int index) { return headers_.get(index); } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ @Override public HeaderOrBuilder getHeadersOrBuilder( int index) { return headers_.get(index); } /** *
         * http like content-encoding, eg: gzip or none
         * 
* * optional string payload_encoding = 6; * * @return Whether the payloadEncoding field is set. */ @Override public boolean hasPayloadEncoding() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * http like content-encoding, eg: gzip or none
         * 
* * optional string payload_encoding = 6; * * @return The payloadEncoding. */ @Override public String getPayloadEncoding() { Object ref = payloadEncoding_; if (ref instanceof String) { return (String) ref; } else { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { payloadEncoding_ = s; } return s; } } /** *
         * http like content-encoding, eg: gzip or none
         * 
* * optional string payload_encoding = 6; * * @return The bytes for payloadEncoding. */ @Override public com.lark.oapi.google.protobuf.ByteString getPayloadEncodingBytes() { Object ref = payloadEncoding_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); payloadEncoding_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** *
         * http like content-type
         * 
* * optional string payload_type = 7; * * @return Whether the payloadType field is set. */ @Override public boolean hasPayloadType() { return ((bitField0_ & 0x00000020) != 0); } /** *
         * http like content-type
         * 
* * optional string payload_type = 7; * * @return The payloadType. */ @Override public String getPayloadType() { Object ref = payloadType_; if (ref instanceof String) { return (String) ref; } else { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { payloadType_ = s; } return s; } } /** *
         * http like content-type
         * 
* * optional string payload_type = 7; * * @return The bytes for payloadType. */ @Override public com.lark.oapi.google.protobuf.ByteString getPayloadTypeBytes() { Object ref = payloadType_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); payloadType_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** *
         * http like body
         * 
* * optional bytes payload = 8; * * @return Whether the payload field is set. */ @Override public boolean hasPayload() { return ((bitField0_ & 0x00000040) != 0); } /** *
         * http like body
         * 
* * optional bytes payload = 8; * * @return The payload. */ @Override public com.lark.oapi.google.protobuf.ByteString getPayload() { return payload_; } /** * optional string LogIDNew = 9; * * @return Whether the logIDNew field is set. */ @Override public boolean hasLogIDNew() { return ((bitField0_ & 0x00000080) != 0); } /** * optional string LogIDNew = 9; * * @return The logIDNew. */ @Override public String getLogIDNew() { Object ref = logIDNew_; if (ref instanceof String) { return (String) ref; } else { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { logIDNew_ = s; } return s; } } /** * optional string LogIDNew = 9; * * @return The bytes for logIDNew. */ @Override public com.lark.oapi.google.protobuf.ByteString getLogIDNewBytes() { Object ref = logIDNew_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); logIDNew_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSeqID()) { memoizedIsInitialized = 0; return false; } if (!hasLogID()) { memoizedIsInitialized = 0; return false; } if (!hasService()) { memoizedIsInitialized = 0; return false; } if (!hasMethod()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getHeadersCount(); i++) { if (!getHeaders(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @Override public void writeTo(com.lark.oapi.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(1, seqID_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt64(2, logID_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, service_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, method_); } for (int i = 0; i < headers_.size(); i++) { output.writeMessage(5, headers_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { com.lark.oapi.google.protobuf.GeneratedMessageV3.writeString(output, 6, payloadEncoding_); } if (((bitField0_ & 0x00000020) != 0)) { com.lark.oapi.google.protobuf.GeneratedMessageV3.writeString(output, 7, payloadType_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBytes(8, payload_); } if (((bitField0_ & 0x00000080) != 0)) { com.lark.oapi.google.protobuf.GeneratedMessageV3.writeString(output, 9, logIDNew_); } unknownFields.writeTo(output); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.lark.oapi.google.protobuf.CodedOutputStream .computeUInt64Size(1, seqID_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.lark.oapi.google.protobuf.CodedOutputStream .computeUInt64Size(2, logID_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.lark.oapi.google.protobuf.CodedOutputStream .computeInt32Size(3, service_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.lark.oapi.google.protobuf.CodedOutputStream .computeInt32Size(4, method_); } for (int i = 0; i < headers_.size(); i++) { size += com.lark.oapi.google.protobuf.CodedOutputStream .computeMessageSize(5, headers_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.lark.oapi.google.protobuf.GeneratedMessageV3.computeStringSize(6, payloadEncoding_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.lark.oapi.google.protobuf.GeneratedMessageV3.computeStringSize(7, payloadType_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.lark.oapi.google.protobuf.CodedOutputStream .computeBytesSize(8, payload_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.lark.oapi.google.protobuf.GeneratedMessageV3.computeStringSize(9, logIDNew_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof Frame)) { return super.equals(obj); } Frame other = (Frame) obj; if (hasSeqID() != other.hasSeqID()) return false; if (hasSeqID()) { if (getSeqID() != other.getSeqID()) return false; } if (hasLogID() != other.hasLogID()) return false; if (hasLogID()) { if (getLogID() != other.getLogID()) return false; } if (hasService() != other.hasService()) return false; if (hasService()) { if (getService() != other.getService()) return false; } if (hasMethod() != other.hasMethod()) return false; if (hasMethod()) { if (getMethod() != other.getMethod()) return false; } if (!getHeadersList() .equals(other.getHeadersList())) return false; if (hasPayloadEncoding() != other.hasPayloadEncoding()) return false; if (hasPayloadEncoding()) { if (!getPayloadEncoding() .equals(other.getPayloadEncoding())) return false; } if (hasPayloadType() != other.hasPayloadType()) return false; if (hasPayloadType()) { if (!getPayloadType() .equals(other.getPayloadType())) return false; } if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { if (!getPayload() .equals(other.getPayload())) return false; } if (hasLogIDNew() != other.hasLogIDNew()) return false; if (hasLogIDNew()) { if (!getLogIDNew() .equals(other.getLogIDNew())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSeqID()) { hash = (37 * hash) + SEQID_FIELD_NUMBER; hash = (53 * hash) + com.lark.oapi.google.protobuf.Internal.hashLong( getSeqID()); } if (hasLogID()) { hash = (37 * hash) + LOGID_FIELD_NUMBER; hash = (53 * hash) + com.lark.oapi.google.protobuf.Internal.hashLong( getLogID()); } if (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService(); } if (hasMethod()) { hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod(); } if (getHeadersCount() > 0) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeadersList().hashCode(); } if (hasPayloadEncoding()) { hash = (37 * hash) + PAYLOAD_ENCODING_FIELD_NUMBER; hash = (53 * hash) + getPayloadEncoding().hashCode(); } if (hasPayloadType()) { hash = (37 * hash) + PAYLOAD_TYPE_FIELD_NUMBER; hash = (53 * hash) + getPayloadType().hashCode(); } if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } if (hasLogIDNew()) { hash = (37 * hash) + LOGIDNEW_FIELD_NUMBER; hash = (53 * hash) + getLogIDNew().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } @Override public Builder newBuilderForType() { return newBuilder(); } @Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @Override public com.lark.oapi.google.protobuf.Parser getParserForType() { return PARSER; } @Override public Frame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } /** *
         * message frame
         * 
*

* Protobuf type {@code pbbp2.Frame} */ public static final class Builder extends com.lark.oapi.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pbbp2.Frame) FrameOrBuilder { private int bitField0_; private long seqID_; private long logID_; private int service_; private int method_; private java.util.List

headers_ = java.util.Collections.emptyList(); private com.lark.oapi.google.protobuf.RepeatedFieldBuilderV3< Header, Header.Builder, HeaderOrBuilder> headersBuilder_; private Object payloadEncoding_ = ""; private Object payloadType_ = ""; private com.lark.oapi.google.protobuf.ByteString payload_ = com.lark.oapi.google.protobuf.ByteString.EMPTY; private Object logIDNew_ = ""; // Construct using com.lark.oapi.ws.pb.Pbbp2.Frame.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } public static final com.lark.oapi.google.protobuf.Descriptors.Descriptor getDescriptor() { return Pbbp2.internal_static_pbbp2_Frame_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Pbbp2.internal_static_pbbp2_Frame_fieldAccessorTable .ensureFieldAccessorsInitialized( Frame.class, Builder.class); } private void maybeForceBuilderInitialization() { if (com.lark.oapi.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); } } @Override public Builder clear() { super.clear(); seqID_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); logID_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); service_ = 0; bitField0_ = (bitField0_ & ~0x00000004); method_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { headersBuilder_.clear(); } payloadEncoding_ = ""; bitField0_ = (bitField0_ & ~0x00000020); payloadType_ = ""; bitField0_ = (bitField0_ & ~0x00000040); payload_ = com.lark.oapi.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); logIDNew_ = ""; bitField0_ = (bitField0_ & ~0x00000100); return this; } @Override public com.lark.oapi.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Pbbp2.internal_static_pbbp2_Frame_descriptor; } @Override public Frame getDefaultInstanceForType() { return Frame.getDefaultInstance(); } @Override public Frame build() { Frame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public Frame buildPartial() { Frame result = new Frame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.seqID_ = seqID_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.logID_ = logID_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.service_ = service_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.method_ = method_; to_bitField0_ |= 0x00000008; } if (headersBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); bitField0_ = (bitField0_ & ~0x00000010); } result.headers_ = headers_; } else { result.headers_ = headersBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000010; } result.payloadEncoding_ = payloadEncoding_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000020; } result.payloadType_ = payloadType_; if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000040; } result.payload_ = payload_; if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000080; } result.logIDNew_ = logIDNew_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @Override public Builder clone() { return super.clone(); } @Override public Builder setField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.setField(field, value); } @Override public Builder clearField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @Override public Builder clearOneof( com.lark.oapi.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @Override public Builder setRepeatedField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return super.setRepeatedField(field, index, value); } @Override public Builder addRepeatedField( com.lark.oapi.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.addRepeatedField(field, value); } @Override public Builder mergeFrom(com.lark.oapi.google.protobuf.Message other) { if (other instanceof Frame) { return mergeFrom((Frame) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Frame other) { if (other == Frame.getDefaultInstance()) return this; if (other.hasSeqID()) { setSeqID(other.getSeqID()); } if (other.hasLogID()) { setLogID(other.getLogID()); } if (other.hasService()) { setService(other.getService()); } if (other.hasMethod()) { setMethod(other.getMethod()); } if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureHeadersIsMutable(); headers_.addAll(other.headers_); } onChanged(); } } else { if (!other.headers_.isEmpty()) { if (headersBuilder_.isEmpty()) { headersBuilder_.dispose(); headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000010); headersBuilder_ = com.lark.oapi.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } } } if (other.hasPayloadEncoding()) { bitField0_ |= 0x00000020; payloadEncoding_ = other.payloadEncoding_; onChanged(); } if (other.hasPayloadType()) { bitField0_ |= 0x00000040; payloadType_ = other.payloadType_; onChanged(); } if (other.hasPayload()) { setPayload(other.getPayload()); } if (other.hasLogIDNew()) { bitField0_ |= 0x00000100; logIDNew_ = other.logIDNew_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @Override public final boolean isInitialized() { if (!hasSeqID()) { return false; } if (!hasLogID()) { return false; } if (!hasService()) { return false; } if (!hasMethod()) { return false; } for (int i = 0; i < getHeadersCount(); i++) { if (!getHeaders(i).isInitialized()) { return false; } } return true; } @Override public Builder mergeFrom( com.lark.oapi.google.protobuf.CodedInputStream input, com.lark.oapi.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Frame parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.lark.oapi.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Frame) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } /** * required uint64 SeqID = 1; * * @return Whether the seqID field is set. */ @Override public boolean hasSeqID() { return ((bitField0_ & 0x00000001) != 0); } /** * required uint64 SeqID = 1; * * @return The seqID. */ @Override public long getSeqID() { return seqID_; } /** * required uint64 SeqID = 1; * * @param value The seqID to set. * @return This builder for chaining. */ public Builder setSeqID(long value) { bitField0_ |= 0x00000001; seqID_ = value; onChanged(); return this; } /** * required uint64 SeqID = 1; * * @return This builder for chaining. */ public Builder clearSeqID() { bitField0_ = (bitField0_ & ~0x00000001); seqID_ = 0L; onChanged(); return this; } /** * required uint64 LogID = 2; * * @return Whether the logID field is set. */ @Override public boolean hasLogID() { return ((bitField0_ & 0x00000002) != 0); } /** * required uint64 LogID = 2; * * @return The logID. */ @Override public long getLogID() { return logID_; } /** * required uint64 LogID = 2; * * @param value The logID to set. * @return This builder for chaining. */ public Builder setLogID(long value) { bitField0_ |= 0x00000002; logID_ = value; onChanged(); return this; } /** * required uint64 LogID = 2; * * @return This builder for chaining. */ public Builder clearLogID() { bitField0_ = (bitField0_ & ~0x00000002); logID_ = 0L; onChanged(); return this; } /** * required int32 service = 3; * * @return Whether the service field is set. */ @Override public boolean hasService() { return ((bitField0_ & 0x00000004) != 0); } /** * required int32 service = 3; * * @return The service. */ @Override public int getService() { return service_; } /** * required int32 service = 3; * * @param value The service to set. * @return This builder for chaining. */ public Builder setService(int value) { bitField0_ |= 0x00000004; service_ = value; onChanged(); return this; } /** * required int32 service = 3; * * @return This builder for chaining. */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000004); service_ = 0; onChanged(); return this; } /** * required int32 method = 4; * * @return Whether the method field is set. */ @Override public boolean hasMethod() { return ((bitField0_ & 0x00000008) != 0); } /** * required int32 method = 4; * * @return The method. */ @Override public int getMethod() { return method_; } /** * required int32 method = 4; * * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod(int value) { bitField0_ |= 0x00000008; method_ = value; onChanged(); return this; } /** * required int32 method = 4; * * @return This builder for chaining. */ public Builder clearMethod() { bitField0_ = (bitField0_ & ~0x00000008); method_ = 0; onChanged(); return this; } private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { headers_ = new java.util.ArrayList
(headers_); bitField0_ |= 0x00000010; } } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public java.util.List
getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { return headersBuilder_.getMessageList(); } } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public int getHeadersCount() { if (headersBuilder_ == null) { return headers_.size(); } else { return headersBuilder_.getCount(); } } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Header getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessage(index); } } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder setHeaders( int index, Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); } else { headersBuilder_.setMessage(index, value); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder setHeaders( int index, Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); onChanged(); } else { headersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder addHeaders(Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); onChanged(); } else { headersBuilder_.addMessage(value); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder addHeaders( int index, Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(index, value); onChanged(); } else { headersBuilder_.addMessage(index, value); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder addHeaders( Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder addHeaders( int index, Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder addAllHeaders( Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); com.lark.oapi.google.protobuf.AbstractMessageLite.Builder.addAll( values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder clearHeaders() { if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { headersBuilder_.clear(); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.remove(index); onChanged(); } else { headersBuilder_.remove(index); } return this; } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Header.Builder getHeadersBuilder( int index) { return getHeadersFieldBuilder().getBuilder(index); } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public HeaderOrBuilder getHeadersOrBuilder( int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public java.util.List getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headers_); } } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Header.Builder addHeadersBuilder() { return getHeadersFieldBuilder().addBuilder( Header.getDefaultInstance()); } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public Header.Builder addHeadersBuilder( int index) { return getHeadersFieldBuilder().addBuilder( index, Header.getDefaultInstance()); } /** * repeated .pbbp2.Header headers = 5 [(.gogoproto.nullable) = false]; */ public java.util.List getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } private com.lark.oapi.google.protobuf.RepeatedFieldBuilderV3< Header, Header.Builder, HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.lark.oapi.google.protobuf.RepeatedFieldBuilderV3< Header, Header.Builder, HeaderOrBuilder>( headers_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } /** *
             * http like content-encoding, eg: gzip or none
             * 
* * optional string payload_encoding = 6; * * @return Whether the payloadEncoding field is set. */ public boolean hasPayloadEncoding() { return ((bitField0_ & 0x00000020) != 0); } /** *
             * http like content-encoding, eg: gzip or none
             * 
* * optional string payload_encoding = 6; * * @return The payloadEncoding. */ public String getPayloadEncoding() { Object ref = payloadEncoding_; if (!(ref instanceof String)) { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { payloadEncoding_ = s; } return s; } else { return (String) ref; } } /** *
             * http like content-encoding, eg: gzip or none
             * 
* * optional string payload_encoding = 6; * * @param value The payloadEncoding to set. * @return This builder for chaining. */ public Builder setPayloadEncoding( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; payloadEncoding_ = value; onChanged(); return this; } /** *
             * http like content-encoding, eg: gzip or none
             * 
* * optional string payload_encoding = 6; * * @return The bytes for payloadEncoding. */ public com.lark.oapi.google.protobuf.ByteString getPayloadEncodingBytes() { Object ref = payloadEncoding_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); payloadEncoding_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** *
             * http like content-encoding, eg: gzip or none
             * 
* * optional string payload_encoding = 6; * * @param value The bytes for payloadEncoding to set. * @return This builder for chaining. */ public Builder setPayloadEncodingBytes( com.lark.oapi.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; payloadEncoding_ = value; onChanged(); return this; } /** *
             * http like content-encoding, eg: gzip or none
             * 
* * optional string payload_encoding = 6; * * @return This builder for chaining. */ public Builder clearPayloadEncoding() { bitField0_ = (bitField0_ & ~0x00000020); payloadEncoding_ = getDefaultInstance().getPayloadEncoding(); onChanged(); return this; } /** *
             * http like content-type
             * 
* * optional string payload_type = 7; * * @return Whether the payloadType field is set. */ public boolean hasPayloadType() { return ((bitField0_ & 0x00000040) != 0); } /** *
             * http like content-type
             * 
* * optional string payload_type = 7; * * @return The payloadType. */ public String getPayloadType() { Object ref = payloadType_; if (!(ref instanceof String)) { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { payloadType_ = s; } return s; } else { return (String) ref; } } /** *
             * http like content-type
             * 
* * optional string payload_type = 7; * * @param value The payloadType to set. * @return This builder for chaining. */ public Builder setPayloadType( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; payloadType_ = value; onChanged(); return this; } /** *
             * http like content-type
             * 
* * optional string payload_type = 7; * * @return The bytes for payloadType. */ public com.lark.oapi.google.protobuf.ByteString getPayloadTypeBytes() { Object ref = payloadType_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); payloadType_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** *
             * http like content-type
             * 
* * optional string payload_type = 7; * * @param value The bytes for payloadType to set. * @return This builder for chaining. */ public Builder setPayloadTypeBytes( com.lark.oapi.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; payloadType_ = value; onChanged(); return this; } /** *
             * http like content-type
             * 
* * optional string payload_type = 7; * * @return This builder for chaining. */ public Builder clearPayloadType() { bitField0_ = (bitField0_ & ~0x00000040); payloadType_ = getDefaultInstance().getPayloadType(); onChanged(); return this; } /** *
             * http like body
             * 
* * optional bytes payload = 8; * * @return Whether the payload field is set. */ @Override public boolean hasPayload() { return ((bitField0_ & 0x00000080) != 0); } /** *
             * http like body
             * 
* * optional bytes payload = 8; * * @return The payload. */ @Override public com.lark.oapi.google.protobuf.ByteString getPayload() { return payload_; } /** *
             * http like body
             * 
* * optional bytes payload = 8; * * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.lark.oapi.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; payload_ = value; onChanged(); return this; } /** *
             * http like body
             * 
* * optional bytes payload = 8; * * @return This builder for chaining. */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000080); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } /** * optional string LogIDNew = 9; * * @return Whether the logIDNew field is set. */ public boolean hasLogIDNew() { return ((bitField0_ & 0x00000100) != 0); } /** * optional string LogIDNew = 9; * * @return The logIDNew. */ public String getLogIDNew() { Object ref = logIDNew_; if (!(ref instanceof String)) { com.lark.oapi.google.protobuf.ByteString bs = (com.lark.oapi.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { logIDNew_ = s; } return s; } else { return (String) ref; } } /** * optional string LogIDNew = 9; * * @param value The logIDNew to set. * @return This builder for chaining. */ public Builder setLogIDNew( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; logIDNew_ = value; onChanged(); return this; } /** * optional string LogIDNew = 9; * * @return The bytes for logIDNew. */ public com.lark.oapi.google.protobuf.ByteString getLogIDNewBytes() { Object ref = logIDNew_; if (ref instanceof String) { com.lark.oapi.google.protobuf.ByteString b = com.lark.oapi.google.protobuf.ByteString.copyFromUtf8( (String) ref); logIDNew_ = b; return b; } else { return (com.lark.oapi.google.protobuf.ByteString) ref; } } /** * optional string LogIDNew = 9; * * @param value The bytes for logIDNew to set. * @return This builder for chaining. */ public Builder setLogIDNewBytes( com.lark.oapi.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; logIDNew_ = value; onChanged(); return this; } /** * optional string LogIDNew = 9; * * @return This builder for chaining. */ public Builder clearLogIDNew() { bitField0_ = (bitField0_ & ~0x00000100); logIDNew_ = getDefaultInstance().getLogIDNew(); onChanged(); return this; } @Override public final Builder setUnknownFields( final com.lark.oapi.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @Override public final Builder mergeUnknownFields( final com.lark.oapi.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pbbp2.Frame) } } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy