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

com.sandpolis.core.ipc.MSG Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/sandpolis/core/ipc/MSG.proto

package com.sandpolis.core.ipc;

public final class MSG {
  private MSG() {}
  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 MessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ipc.Message)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ boolean hasRqMetadata(); /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ com.sandpolis.core.ipc.MCMetadata.RQ_Metadata getRqMetadata(); /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ com.sandpolis.core.ipc.MCMetadata.RQ_MetadataOrBuilder getRqMetadataOrBuilder(); /** * .ipc.RS_Metadata rs_metadata = 2; */ boolean hasRsMetadata(); /** * .ipc.RS_Metadata rs_metadata = 2; */ com.sandpolis.core.ipc.MCMetadata.RS_Metadata getRsMetadata(); /** * .ipc.RS_Metadata rs_metadata = 2; */ com.sandpolis.core.ipc.MCMetadata.RS_MetadataOrBuilder getRsMetadataOrBuilder(); public com.sandpolis.core.ipc.MSG.Message.MsgCase getMsgCase(); } /** *
   **
   * A message type for inter-process communication (IPC) among instances.
   * Message naming conventions:
   *	RQ_*		Request messages
   *	RS_*		Response messages
   *	
   * Message category naming conventions:
   *	MC_*		Message Category
   * 
* * Protobuf type {@code ipc.Message} */ public static final class Message extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipc.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() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.Builder subBuilder = null; if (msgCase_ == 1) { subBuilder = ((com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_).toBuilder(); } msg_ = input.readMessage(com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_); msg_ = subBuilder.buildPartial(); } msgCase_ = 1; break; } case 18: { com.sandpolis.core.ipc.MCMetadata.RS_Metadata.Builder subBuilder = null; if (msgCase_ == 2) { subBuilder = ((com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_).toBuilder(); } msg_ = input.readMessage(com.sandpolis.core.ipc.MCMetadata.RS_Metadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_); msg_ = subBuilder.buildPartial(); } msgCase_ = 2; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sandpolis.core.ipc.MSG.internal_static_ipc_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.sandpolis.core.ipc.MSG.internal_static_ipc_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( com.sandpolis.core.ipc.MSG.Message.class, com.sandpolis.core.ipc.MSG.Message.Builder.class); } private int msgCase_ = 0; private java.lang.Object msg_; public enum MsgCase implements com.google.protobuf.Internal.EnumLite { RQ_METADATA(1), RS_METADATA(2), MSG_NOT_SET(0); private final int value; private MsgCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MsgCase valueOf(int value) { return forNumber(value); } public static MsgCase forNumber(int value) { switch (value) { case 1: return RQ_METADATA; case 2: return RS_METADATA; case 0: return MSG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MsgCase getMsgCase() { return MsgCase.forNumber( msgCase_); } public static final int RQ_METADATA_FIELD_NUMBER = 1; /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public boolean hasRqMetadata() { return msgCase_ == 1; } /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.MCMetadata.RQ_Metadata getRqMetadata() { if (msgCase_ == 1) { return (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance(); } /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.MCMetadata.RQ_MetadataOrBuilder getRqMetadataOrBuilder() { if (msgCase_ == 1) { return (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance(); } public static final int RS_METADATA_FIELD_NUMBER = 2; /** * .ipc.RS_Metadata rs_metadata = 2; */ public boolean hasRsMetadata() { return msgCase_ == 2; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.MCMetadata.RS_Metadata getRsMetadata() { if (msgCase_ == 2) { return (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance(); } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.MCMetadata.RS_MetadataOrBuilder getRsMetadataOrBuilder() { if (msgCase_ == 2) { return (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance(); } 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 (msgCase_ == 1) { output.writeMessage(1, (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_); } if (msgCase_ == 2) { output.writeMessage(2, (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (msgCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_); } if (msgCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.sandpolis.core.ipc.MSG.Message)) { return super.equals(obj); } com.sandpolis.core.ipc.MSG.Message other = (com.sandpolis.core.ipc.MSG.Message) obj; if (!getMsgCase().equals(other.getMsgCase())) return false; switch (msgCase_) { case 1: if (!getRqMetadata() .equals(other.getRqMetadata())) return false; break; case 2: if (!getRsMetadata() .equals(other.getRsMetadata())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (msgCase_) { case 1: hash = (37 * hash) + RQ_METADATA_FIELD_NUMBER; hash = (53 * hash) + getRqMetadata().hashCode(); break; case 2: hash = (37 * hash) + RS_METADATA_FIELD_NUMBER; hash = (53 * hash) + getRsMetadata().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.sandpolis.core.ipc.MSG.Message parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.sandpolis.core.ipc.MSG.Message parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.sandpolis.core.ipc.MSG.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.sandpolis.core.ipc.MSG.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.sandpolis.core.ipc.MSG.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.sandpolis.core.ipc.MSG.Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.sandpolis.core.ipc.MSG.Message parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.sandpolis.core.ipc.MSG.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.sandpolis.core.ipc.MSG.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.sandpolis.core.ipc.MSG.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.sandpolis.core.ipc.MSG.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.sandpolis.core.ipc.MSG.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.sandpolis.core.ipc.MSG.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; } /** *
     **
     * A message type for inter-process communication (IPC) among instances.
     * Message naming conventions:
     *	RQ_*		Request messages
     *	RS_*		Response messages
     *	
     * Message category naming conventions:
     *	MC_*		Message Category
     * 
* * Protobuf type {@code ipc.Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipc.Message) com.sandpolis.core.ipc.MSG.MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sandpolis.core.ipc.MSG.internal_static_ipc_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.sandpolis.core.ipc.MSG.internal_static_ipc_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( com.sandpolis.core.ipc.MSG.Message.class, com.sandpolis.core.ipc.MSG.Message.Builder.class); } // Construct using com.sandpolis.core.ipc.MSG.Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); msgCase_ = 0; msg_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sandpolis.core.ipc.MSG.internal_static_ipc_Message_descriptor; } @java.lang.Override public com.sandpolis.core.ipc.MSG.Message getDefaultInstanceForType() { return com.sandpolis.core.ipc.MSG.Message.getDefaultInstance(); } @java.lang.Override public com.sandpolis.core.ipc.MSG.Message build() { com.sandpolis.core.ipc.MSG.Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.sandpolis.core.ipc.MSG.Message buildPartial() { com.sandpolis.core.ipc.MSG.Message result = new com.sandpolis.core.ipc.MSG.Message(this); if (msgCase_ == 1) { if (rqMetadataBuilder_ == null) { result.msg_ = msg_; } else { result.msg_ = rqMetadataBuilder_.build(); } } if (msgCase_ == 2) { if (rsMetadataBuilder_ == null) { result.msg_ = msg_; } else { result.msg_ = rsMetadataBuilder_.build(); } } result.msgCase_ = msgCase_; 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.sandpolis.core.ipc.MSG.Message) { return mergeFrom((com.sandpolis.core.ipc.MSG.Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sandpolis.core.ipc.MSG.Message other) { if (other == com.sandpolis.core.ipc.MSG.Message.getDefaultInstance()) return this; switch (other.getMsgCase()) { case RQ_METADATA: { mergeRqMetadata(other.getRqMetadata()); break; } case RS_METADATA: { mergeRsMetadata(other.getRsMetadata()); break; } case MSG_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.sandpolis.core.ipc.MSG.Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.sandpolis.core.ipc.MSG.Message) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int msgCase_ = 0; private java.lang.Object msg_; public MsgCase getMsgCase() { return MsgCase.forNumber( msgCase_); } public Builder clearMsg() { msgCase_ = 0; msg_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.MCMetadata.RQ_Metadata, com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.Builder, com.sandpolis.core.ipc.MCMetadata.RQ_MetadataOrBuilder> rqMetadataBuilder_; /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public boolean hasRqMetadata() { return msgCase_ == 1; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.MCMetadata.RQ_Metadata getRqMetadata() { if (rqMetadataBuilder_ == null) { if (msgCase_ == 1) { return (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance(); } else { if (msgCase_ == 1) { return rqMetadataBuilder_.getMessage(); } return com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance(); } } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder setRqMetadata(com.sandpolis.core.ipc.MCMetadata.RQ_Metadata value) { if (rqMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } msg_ = value; onChanged(); } else { rqMetadataBuilder_.setMessage(value); } msgCase_ = 1; return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder setRqMetadata( com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.Builder builderForValue) { if (rqMetadataBuilder_ == null) { msg_ = builderForValue.build(); onChanged(); } else { rqMetadataBuilder_.setMessage(builderForValue.build()); } msgCase_ = 1; return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder mergeRqMetadata(com.sandpolis.core.ipc.MCMetadata.RQ_Metadata value) { if (rqMetadataBuilder_ == null) { if (msgCase_ == 1 && msg_ != com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance()) { msg_ = com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.newBuilder((com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_) .mergeFrom(value).buildPartial(); } else { msg_ = value; } onChanged(); } else { if (msgCase_ == 1) { rqMetadataBuilder_.mergeFrom(value); } rqMetadataBuilder_.setMessage(value); } msgCase_ = 1; return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder clearRqMetadata() { if (rqMetadataBuilder_ == null) { if (msgCase_ == 1) { msgCase_ = 0; msg_ = null; onChanged(); } } else { if (msgCase_ == 1) { msgCase_ = 0; msg_ = null; } rqMetadataBuilder_.clear(); } return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.Builder getRqMetadataBuilder() { return getRqMetadataFieldBuilder().getBuilder(); } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.MCMetadata.RQ_MetadataOrBuilder getRqMetadataOrBuilder() { if ((msgCase_ == 1) && (rqMetadataBuilder_ != null)) { return rqMetadataBuilder_.getMessageOrBuilder(); } else { if (msgCase_ == 1) { return (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance(); } } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.MCMetadata.RQ_Metadata, com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.Builder, com.sandpolis.core.ipc.MCMetadata.RQ_MetadataOrBuilder> getRqMetadataFieldBuilder() { if (rqMetadataBuilder_ == null) { if (!(msgCase_ == 1)) { msg_ = com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.getDefaultInstance(); } rqMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.MCMetadata.RQ_Metadata, com.sandpolis.core.ipc.MCMetadata.RQ_Metadata.Builder, com.sandpolis.core.ipc.MCMetadata.RQ_MetadataOrBuilder>( (com.sandpolis.core.ipc.MCMetadata.RQ_Metadata) msg_, getParentForChildren(), isClean()); msg_ = null; } msgCase_ = 1; onChanged();; return rqMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.MCMetadata.RS_Metadata, com.sandpolis.core.ipc.MCMetadata.RS_Metadata.Builder, com.sandpolis.core.ipc.MCMetadata.RS_MetadataOrBuilder> rsMetadataBuilder_; /** * .ipc.RS_Metadata rs_metadata = 2; */ public boolean hasRsMetadata() { return msgCase_ == 2; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.MCMetadata.RS_Metadata getRsMetadata() { if (rsMetadataBuilder_ == null) { if (msgCase_ == 2) { return (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance(); } else { if (msgCase_ == 2) { return rsMetadataBuilder_.getMessage(); } return com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance(); } } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder setRsMetadata(com.sandpolis.core.ipc.MCMetadata.RS_Metadata value) { if (rsMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } msg_ = value; onChanged(); } else { rsMetadataBuilder_.setMessage(value); } msgCase_ = 2; return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder setRsMetadata( com.sandpolis.core.ipc.MCMetadata.RS_Metadata.Builder builderForValue) { if (rsMetadataBuilder_ == null) { msg_ = builderForValue.build(); onChanged(); } else { rsMetadataBuilder_.setMessage(builderForValue.build()); } msgCase_ = 2; return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder mergeRsMetadata(com.sandpolis.core.ipc.MCMetadata.RS_Metadata value) { if (rsMetadataBuilder_ == null) { if (msgCase_ == 2 && msg_ != com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance()) { msg_ = com.sandpolis.core.ipc.MCMetadata.RS_Metadata.newBuilder((com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_) .mergeFrom(value).buildPartial(); } else { msg_ = value; } onChanged(); } else { if (msgCase_ == 2) { rsMetadataBuilder_.mergeFrom(value); } rsMetadataBuilder_.setMessage(value); } msgCase_ = 2; return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder clearRsMetadata() { if (rsMetadataBuilder_ == null) { if (msgCase_ == 2) { msgCase_ = 0; msg_ = null; onChanged(); } } else { if (msgCase_ == 2) { msgCase_ = 0; msg_ = null; } rsMetadataBuilder_.clear(); } return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.MCMetadata.RS_Metadata.Builder getRsMetadataBuilder() { return getRsMetadataFieldBuilder().getBuilder(); } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.MCMetadata.RS_MetadataOrBuilder getRsMetadataOrBuilder() { if ((msgCase_ == 2) && (rsMetadataBuilder_ != null)) { return rsMetadataBuilder_.getMessageOrBuilder(); } else { if (msgCase_ == 2) { return (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_; } return com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance(); } } /** * .ipc.RS_Metadata rs_metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.MCMetadata.RS_Metadata, com.sandpolis.core.ipc.MCMetadata.RS_Metadata.Builder, com.sandpolis.core.ipc.MCMetadata.RS_MetadataOrBuilder> getRsMetadataFieldBuilder() { if (rsMetadataBuilder_ == null) { if (!(msgCase_ == 2)) { msg_ = com.sandpolis.core.ipc.MCMetadata.RS_Metadata.getDefaultInstance(); } rsMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.MCMetadata.RS_Metadata, com.sandpolis.core.ipc.MCMetadata.RS_Metadata.Builder, com.sandpolis.core.ipc.MCMetadata.RS_MetadataOrBuilder>( (com.sandpolis.core.ipc.MCMetadata.RS_Metadata) msg_, getParentForChildren(), isClean()); msg_ = null; } msgCase_ = 2; onChanged();; return rsMetadataBuilder_; } @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:ipc.Message) } // @@protoc_insertion_point(class_scope:ipc.Message) private static final com.sandpolis.core.ipc.MSG.Message DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.sandpolis.core.ipc.MSG.Message(); } public static com.sandpolis.core.ipc.MSG.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 { return new Message(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.sandpolis.core.ipc.MSG.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipc_Message_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipc_Message_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 com/sandpolis/core/ipc/MSG.proto\022\003ipc\032" + "(com/sandpolis/core/ipc/MC_Metadata.prot" + "o\"b\n\007Message\022\'\n\013rq_metadata\030\001 \001(\0132\020.ipc." + "RQ_MetadataH\000\022\'\n\013rs_metadata\030\002 \001(\0132\020.ipc" + ".RS_MetadataH\000B\005\n\003msgB\030\n\026com.sandpolis.c" + "ore.ipcb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.sandpolis.core.ipc.MCMetadata.getDescriptor(), }, assigner); internal_static_ipc_Message_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ipc_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ipc_Message_descriptor, new java.lang.String[] { "RqMetadata", "RsMetadata", "Msg", }); com.sandpolis.core.ipc.MCMetadata.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy