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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: com/sandpolis/core/ipc/message.proto

package com.sandpolis.core.ipc;

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

    /**
     * 
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; * @return Whether the rqMetadata field is set. */ boolean hasRqMetadata(); /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; * @return The rqMetadata. */ com.sandpolis.core.ipc.Metadata.RQ_Metadata getRqMetadata(); /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ com.sandpolis.core.ipc.Metadata.RQ_MetadataOrBuilder getRqMetadataOrBuilder(); /** * .ipc.RS_Metadata rs_metadata = 2; * @return Whether the rsMetadata field is set. */ boolean hasRsMetadata(); /** * .ipc.RS_Metadata rs_metadata = 2; * @return The rsMetadata. */ com.sandpolis.core.ipc.Metadata.RS_Metadata getRsMetadata(); /** * .ipc.RS_Metadata rs_metadata = 2; */ com.sandpolis.core.ipc.Metadata.RS_MetadataOrBuilder getRsMetadataOrBuilder(); public com.sandpolis.core.ipc.Message.MSG.PayloadCase getPayloadCase(); } /** *
   **
   * A message type for inter-process communication (IPC) among instances.
   * Message naming conventions:
   *	RQ_*		Request messages
   *	RS_*		Response messages
   * 
* * Protobuf type {@code ipc.MSG} */ public static final class MSG extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipc.MSG) MSGOrBuilder { private static final long serialVersionUID = 0L; // Use MSG.newBuilder() to construct. private MSG(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MSG() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MSG(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MSG( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.Metadata.RQ_Metadata.Builder subBuilder = null; if (payloadCase_ == 1) { subBuilder = ((com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_).toBuilder(); } payload_ = input.readMessage(com.sandpolis.core.ipc.Metadata.RQ_Metadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_); payload_ = subBuilder.buildPartial(); } payloadCase_ = 1; break; } case 18: { com.sandpolis.core.ipc.Metadata.RS_Metadata.Builder subBuilder = null; if (payloadCase_ == 2) { subBuilder = ((com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_).toBuilder(); } payload_ = input.readMessage(com.sandpolis.core.ipc.Metadata.RS_Metadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_); payload_ = subBuilder.buildPartial(); } payloadCase_ = 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.Message.internal_static_ipc_MSG_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.sandpolis.core.ipc.Message.internal_static_ipc_MSG_fieldAccessorTable .ensureFieldAccessorsInitialized( com.sandpolis.core.ipc.Message.MSG.class, com.sandpolis.core.ipc.Message.MSG.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; public enum PayloadCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RQ_METADATA(1), RS_METADATA(2), PAYLOAD_NOT_SET(0); private final int value; private PayloadCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PayloadCase valueOf(int value) { return forNumber(value); } public static PayloadCase forNumber(int value) { switch (value) { case 1: return RQ_METADATA; case 2: return RS_METADATA; case 0: return PAYLOAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public static final int RQ_METADATA_FIELD_NUMBER = 1; /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; * @return Whether the rqMetadata field is set. */ public boolean hasRqMetadata() { return payloadCase_ == 1; } /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; * @return The rqMetadata. */ public com.sandpolis.core.ipc.Metadata.RQ_Metadata getRqMetadata() { if (payloadCase_ == 1) { return (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance(); } /** *
     * MC_Metadata
     * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.Metadata.RQ_MetadataOrBuilder getRqMetadataOrBuilder() { if (payloadCase_ == 1) { return (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance(); } public static final int RS_METADATA_FIELD_NUMBER = 2; /** * .ipc.RS_Metadata rs_metadata = 2; * @return Whether the rsMetadata field is set. */ public boolean hasRsMetadata() { return payloadCase_ == 2; } /** * .ipc.RS_Metadata rs_metadata = 2; * @return The rsMetadata. */ public com.sandpolis.core.ipc.Metadata.RS_Metadata getRsMetadata() { if (payloadCase_ == 2) { return (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RS_Metadata.getDefaultInstance(); } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.Metadata.RS_MetadataOrBuilder getRsMetadataOrBuilder() { if (payloadCase_ == 2) { return (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.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 (payloadCase_ == 1) { output.writeMessage(1, (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_); } if (payloadCase_ == 2) { output.writeMessage(2, (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payloadCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_); } if (payloadCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_); } 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.Message.MSG)) { return super.equals(obj); } com.sandpolis.core.ipc.Message.MSG other = (com.sandpolis.core.ipc.Message.MSG) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { 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 (payloadCase_) { 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.Message.MSG parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.sandpolis.core.ipc.Message.MSG 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.Message.MSG parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.sandpolis.core.ipc.Message.MSG 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.Message.MSG parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.sandpolis.core.ipc.Message.MSG parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.sandpolis.core.ipc.Message.MSG parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.sandpolis.core.ipc.Message.MSG 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.Message.MSG parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.sandpolis.core.ipc.Message.MSG 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.Message.MSG parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.sandpolis.core.ipc.Message.MSG 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.Message.MSG 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
     * 
* * Protobuf type {@code ipc.MSG} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipc.MSG) com.sandpolis.core.ipc.Message.MSGOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.sandpolis.core.ipc.Message.internal_static_ipc_MSG_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.sandpolis.core.ipc.Message.internal_static_ipc_MSG_fieldAccessorTable .ensureFieldAccessorsInitialized( com.sandpolis.core.ipc.Message.MSG.class, com.sandpolis.core.ipc.Message.MSG.Builder.class); } // Construct using com.sandpolis.core.ipc.Message.MSG.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(); payloadCase_ = 0; payload_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.sandpolis.core.ipc.Message.internal_static_ipc_MSG_descriptor; } @java.lang.Override public com.sandpolis.core.ipc.Message.MSG getDefaultInstanceForType() { return com.sandpolis.core.ipc.Message.MSG.getDefaultInstance(); } @java.lang.Override public com.sandpolis.core.ipc.Message.MSG build() { com.sandpolis.core.ipc.Message.MSG result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.sandpolis.core.ipc.Message.MSG buildPartial() { com.sandpolis.core.ipc.Message.MSG result = new com.sandpolis.core.ipc.Message.MSG(this); if (payloadCase_ == 1) { if (rqMetadataBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = rqMetadataBuilder_.build(); } } if (payloadCase_ == 2) { if (rsMetadataBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = rsMetadataBuilder_.build(); } } result.payloadCase_ = payloadCase_; 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.Message.MSG) { return mergeFrom((com.sandpolis.core.ipc.Message.MSG)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.sandpolis.core.ipc.Message.MSG other) { if (other == com.sandpolis.core.ipc.Message.MSG.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case RQ_METADATA: { mergeRqMetadata(other.getRqMetadata()); break; } case RS_METADATA: { mergeRsMetadata(other.getRsMetadata()); break; } case PAYLOAD_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.Message.MSG parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.sandpolis.core.ipc.Message.MSG) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int payloadCase_ = 0; private java.lang.Object payload_; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public Builder clearPayload() { payloadCase_ = 0; payload_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.Metadata.RQ_Metadata, com.sandpolis.core.ipc.Metadata.RQ_Metadata.Builder, com.sandpolis.core.ipc.Metadata.RQ_MetadataOrBuilder> rqMetadataBuilder_; /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; * @return Whether the rqMetadata field is set. */ public boolean hasRqMetadata() { return payloadCase_ == 1; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; * @return The rqMetadata. */ public com.sandpolis.core.ipc.Metadata.RQ_Metadata getRqMetadata() { if (rqMetadataBuilder_ == null) { if (payloadCase_ == 1) { return (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance(); } else { if (payloadCase_ == 1) { return rqMetadataBuilder_.getMessage(); } return com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance(); } } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder setRqMetadata(com.sandpolis.core.ipc.Metadata.RQ_Metadata value) { if (rqMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { rqMetadataBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder setRqMetadata( com.sandpolis.core.ipc.Metadata.RQ_Metadata.Builder builderForValue) { if (rqMetadataBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { rqMetadataBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 1; return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder mergeRqMetadata(com.sandpolis.core.ipc.Metadata.RQ_Metadata value) { if (rqMetadataBuilder_ == null) { if (payloadCase_ == 1 && payload_ != com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance()) { payload_ = com.sandpolis.core.ipc.Metadata.RQ_Metadata.newBuilder((com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 1) { rqMetadataBuilder_.mergeFrom(value); } rqMetadataBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public Builder clearRqMetadata() { if (rqMetadataBuilder_ == null) { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; } rqMetadataBuilder_.clear(); } return this; } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.Metadata.RQ_Metadata.Builder getRqMetadataBuilder() { return getRqMetadataFieldBuilder().getBuilder(); } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ public com.sandpolis.core.ipc.Metadata.RQ_MetadataOrBuilder getRqMetadataOrBuilder() { if ((payloadCase_ == 1) && (rqMetadataBuilder_ != null)) { return rqMetadataBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 1) { return (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance(); } } /** *
       * MC_Metadata
       * 
* * .ipc.RQ_Metadata rq_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.Metadata.RQ_Metadata, com.sandpolis.core.ipc.Metadata.RQ_Metadata.Builder, com.sandpolis.core.ipc.Metadata.RQ_MetadataOrBuilder> getRqMetadataFieldBuilder() { if (rqMetadataBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = com.sandpolis.core.ipc.Metadata.RQ_Metadata.getDefaultInstance(); } rqMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.Metadata.RQ_Metadata, com.sandpolis.core.ipc.Metadata.RQ_Metadata.Builder, com.sandpolis.core.ipc.Metadata.RQ_MetadataOrBuilder>( (com.sandpolis.core.ipc.Metadata.RQ_Metadata) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; onChanged();; return rqMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.Metadata.RS_Metadata, com.sandpolis.core.ipc.Metadata.RS_Metadata.Builder, com.sandpolis.core.ipc.Metadata.RS_MetadataOrBuilder> rsMetadataBuilder_; /** * .ipc.RS_Metadata rs_metadata = 2; * @return Whether the rsMetadata field is set. */ public boolean hasRsMetadata() { return payloadCase_ == 2; } /** * .ipc.RS_Metadata rs_metadata = 2; * @return The rsMetadata. */ public com.sandpolis.core.ipc.Metadata.RS_Metadata getRsMetadata() { if (rsMetadataBuilder_ == null) { if (payloadCase_ == 2) { return (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RS_Metadata.getDefaultInstance(); } else { if (payloadCase_ == 2) { return rsMetadataBuilder_.getMessage(); } return com.sandpolis.core.ipc.Metadata.RS_Metadata.getDefaultInstance(); } } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder setRsMetadata(com.sandpolis.core.ipc.Metadata.RS_Metadata value) { if (rsMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { rsMetadataBuilder_.setMessage(value); } payloadCase_ = 2; return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder setRsMetadata( com.sandpolis.core.ipc.Metadata.RS_Metadata.Builder builderForValue) { if (rsMetadataBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { rsMetadataBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 2; return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder mergeRsMetadata(com.sandpolis.core.ipc.Metadata.RS_Metadata value) { if (rsMetadataBuilder_ == null) { if (payloadCase_ == 2 && payload_ != com.sandpolis.core.ipc.Metadata.RS_Metadata.getDefaultInstance()) { payload_ = com.sandpolis.core.ipc.Metadata.RS_Metadata.newBuilder((com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 2) { rsMetadataBuilder_.mergeFrom(value); } rsMetadataBuilder_.setMessage(value); } payloadCase_ = 2; return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public Builder clearRsMetadata() { if (rsMetadataBuilder_ == null) { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; } rsMetadataBuilder_.clear(); } return this; } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.Metadata.RS_Metadata.Builder getRsMetadataBuilder() { return getRsMetadataFieldBuilder().getBuilder(); } /** * .ipc.RS_Metadata rs_metadata = 2; */ public com.sandpolis.core.ipc.Metadata.RS_MetadataOrBuilder getRsMetadataOrBuilder() { if ((payloadCase_ == 2) && (rsMetadataBuilder_ != null)) { return rsMetadataBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 2) { return (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_; } return com.sandpolis.core.ipc.Metadata.RS_Metadata.getDefaultInstance(); } } /** * .ipc.RS_Metadata rs_metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.Metadata.RS_Metadata, com.sandpolis.core.ipc.Metadata.RS_Metadata.Builder, com.sandpolis.core.ipc.Metadata.RS_MetadataOrBuilder> getRsMetadataFieldBuilder() { if (rsMetadataBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.sandpolis.core.ipc.Metadata.RS_Metadata.getDefaultInstance(); } rsMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.sandpolis.core.ipc.Metadata.RS_Metadata, com.sandpolis.core.ipc.Metadata.RS_Metadata.Builder, com.sandpolis.core.ipc.Metadata.RS_MetadataOrBuilder>( (com.sandpolis.core.ipc.Metadata.RS_Metadata) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 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.MSG) } // @@protoc_insertion_point(class_scope:ipc.MSG) private static final com.sandpolis.core.ipc.Message.MSG DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.sandpolis.core.ipc.Message.MSG(); } public static com.sandpolis.core.ipc.Message.MSG getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MSG parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MSG(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.Message.MSG getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipc_MSG_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipc_MSG_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/message.proto\022\003" + "ipc\032%com/sandpolis/core/ipc/metadata.pro" + "to\"b\n\003MSG\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\t\n\007payloadB\030\n\026com.sandpolis." + "core.ipcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.sandpolis.core.ipc.Metadata.getDescriptor(), }); internal_static_ipc_MSG_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ipc_MSG_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ipc_MSG_descriptor, new java.lang.String[] { "RqMetadata", "RsMetadata", "Payload", }); com.sandpolis.core.ipc.Metadata.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy