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

org.xmtp.proto.message.contents.ConversationReferenceOuterClass Maven / Gradle / Ivy

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

package org.xmtp.proto.message.contents;

public final class ConversationReferenceOuterClass {
  private ConversationReferenceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface ConversationReferenceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:xmtp.message_contents.ConversationReference)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * string topic = 1;
     * @return The topic.
     */
    java.lang.String getTopic();
    /**
     * string topic = 1;
     * @return The bytes for topic.
     */
    com.google.protobuf.ByteString
        getTopicBytes();

    /**
     * string peer_address = 2;
     * @return The peerAddress.
     */
    java.lang.String getPeerAddress();
    /**
     * string peer_address = 2;
     * @return The bytes for peerAddress.
     */
    com.google.protobuf.ByteString
        getPeerAddressBytes();

    /**
     * uint64 created_ns = 3;
     * @return The createdNs.
     */
    long getCreatedNs();

    /**
     * .xmtp.message_contents.InvitationV1.Context context = 4;
     * @return Whether the context field is set.
     */
    boolean hasContext();
    /**
     * .xmtp.message_contents.InvitationV1.Context context = 4;
     * @return The context.
     */
    org.xmtp.proto.message.contents.Invitation.InvitationV1.Context getContext();
  }
  /**
   * 
   * A light pointer for a conversation that contains no decryption keys
   * 
* * Protobuf type {@code xmtp.message_contents.ConversationReference} */ public static final class ConversationReference extends com.google.protobuf.GeneratedMessageLite< ConversationReference, ConversationReference.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.message_contents.ConversationReference) ConversationReferenceOrBuilder { private ConversationReference() { topic_ = ""; peerAddress_ = ""; } public static final int TOPIC_FIELD_NUMBER = 1; private java.lang.String topic_; /** * string topic = 1; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return topic_; } /** * string topic = 1; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return com.google.protobuf.ByteString.copyFromUtf8(topic_); } /** * string topic = 1; * @param value The topic to set. */ private void setTopic( java.lang.String value) { java.lang.Class valueClass = value.getClass(); topic_ = value; } /** * string topic = 1; */ private void clearTopic() { topic_ = getDefaultInstance().getTopic(); } /** * string topic = 1; * @param value The bytes for topic to set. */ private void setTopicBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); topic_ = value.toStringUtf8(); } public static final int PEER_ADDRESS_FIELD_NUMBER = 2; private java.lang.String peerAddress_; /** * string peer_address = 2; * @return The peerAddress. */ @java.lang.Override public java.lang.String getPeerAddress() { return peerAddress_; } /** * string peer_address = 2; * @return The bytes for peerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getPeerAddressBytes() { return com.google.protobuf.ByteString.copyFromUtf8(peerAddress_); } /** * string peer_address = 2; * @param value The peerAddress to set. */ private void setPeerAddress( java.lang.String value) { java.lang.Class valueClass = value.getClass(); peerAddress_ = value; } /** * string peer_address = 2; */ private void clearPeerAddress() { peerAddress_ = getDefaultInstance().getPeerAddress(); } /** * string peer_address = 2; * @param value The bytes for peerAddress to set. */ private void setPeerAddressBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); peerAddress_ = value.toStringUtf8(); } public static final int CREATED_NS_FIELD_NUMBER = 3; private long createdNs_; /** * uint64 created_ns = 3; * @return The createdNs. */ @java.lang.Override public long getCreatedNs() { return createdNs_; } /** * uint64 created_ns = 3; * @param value The createdNs to set. */ private void setCreatedNs(long value) { createdNs_ = value; } /** * uint64 created_ns = 3; */ private void clearCreatedNs() { createdNs_ = 0L; } public static final int CONTEXT_FIELD_NUMBER = 4; private org.xmtp.proto.message.contents.Invitation.InvitationV1.Context context_; /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ @java.lang.Override public boolean hasContext() { return context_ != null; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ @java.lang.Override public org.xmtp.proto.message.contents.Invitation.InvitationV1.Context getContext() { return context_ == null ? org.xmtp.proto.message.contents.Invitation.InvitationV1.Context.getDefaultInstance() : context_; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ private void setContext(org.xmtp.proto.message.contents.Invitation.InvitationV1.Context value) { value.getClass(); context_ = value; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeContext(org.xmtp.proto.message.contents.Invitation.InvitationV1.Context value) { value.getClass(); if (context_ != null && context_ != org.xmtp.proto.message.contents.Invitation.InvitationV1.Context.getDefaultInstance()) { context_ = org.xmtp.proto.message.contents.Invitation.InvitationV1.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ private void clearContext() { context_ = null; } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * A light pointer for a conversation that contains no decryption keys
     * 
* * Protobuf type {@code xmtp.message_contents.ConversationReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_contents.ConversationReference) org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReferenceOrBuilder { // Construct using org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string topic = 1; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { return instance.getTopic(); } /** * string topic = 1; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { return instance.getTopicBytes(); } /** * string topic = 1; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { copyOnWrite(); instance.setTopic(value); return this; } /** * string topic = 1; * @return This builder for chaining. */ public Builder clearTopic() { copyOnWrite(); instance.clearTopic(); return this; } /** * string topic = 1; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTopicBytes(value); return this; } /** * string peer_address = 2; * @return The peerAddress. */ @java.lang.Override public java.lang.String getPeerAddress() { return instance.getPeerAddress(); } /** * string peer_address = 2; * @return The bytes for peerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getPeerAddressBytes() { return instance.getPeerAddressBytes(); } /** * string peer_address = 2; * @param value The peerAddress to set. * @return This builder for chaining. */ public Builder setPeerAddress( java.lang.String value) { copyOnWrite(); instance.setPeerAddress(value); return this; } /** * string peer_address = 2; * @return This builder for chaining. */ public Builder clearPeerAddress() { copyOnWrite(); instance.clearPeerAddress(); return this; } /** * string peer_address = 2; * @param value The bytes for peerAddress to set. * @return This builder for chaining. */ public Builder setPeerAddressBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPeerAddressBytes(value); return this; } /** * uint64 created_ns = 3; * @return The createdNs. */ @java.lang.Override public long getCreatedNs() { return instance.getCreatedNs(); } /** * uint64 created_ns = 3; * @param value The createdNs to set. * @return This builder for chaining. */ public Builder setCreatedNs(long value) { copyOnWrite(); instance.setCreatedNs(value); return this; } /** * uint64 created_ns = 3; * @return This builder for chaining. */ public Builder clearCreatedNs() { copyOnWrite(); instance.clearCreatedNs(); return this; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ @java.lang.Override public boolean hasContext() { return instance.hasContext(); } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ @java.lang.Override public org.xmtp.proto.message.contents.Invitation.InvitationV1.Context getContext() { return instance.getContext(); } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ public Builder setContext(org.xmtp.proto.message.contents.Invitation.InvitationV1.Context value) { copyOnWrite(); instance.setContext(value); return this; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ public Builder setContext( org.xmtp.proto.message.contents.Invitation.InvitationV1.Context.Builder builderForValue) { copyOnWrite(); instance.setContext(builderForValue.build()); return this; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ public Builder mergeContext(org.xmtp.proto.message.contents.Invitation.InvitationV1.Context value) { copyOnWrite(); instance.mergeContext(value); return this; } /** * .xmtp.message_contents.InvitationV1.Context context = 4; */ public Builder clearContext() { copyOnWrite(); instance.clearContext(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.message_contents.ConversationReference) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "topic_", "peerAddress_", "createdNs_", "context_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0003\u0004\t"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:xmtp.message_contents.ConversationReference) private static final org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference DEFAULT_INSTANCE; static { ConversationReference defaultInstance = new ConversationReference(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ConversationReference.class, defaultInstance); } public static org.xmtp.proto.message.contents.ConversationReferenceOuterClass.ConversationReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } static { } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy