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

org.hansken.extraction.plugin.grpc.RpcTransformation Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: hansken_extraction_plugin/framework/DataMessages.proto

// Protobuf Java Version: 3.25.3
package org.hansken.extraction.plugin.grpc;

/**
 * 
 **
 * Message containing one of several types of Transformations, like a super-class. Currently only
 * RpcRangedTransformation is supported.
 *
 * Transformations are pointers to actual raw data. They describe how data can be obtained by reading on certain
 * positions, using decryption, or combinations of these. The benefit of using Transformations is that they take up
 * less space than the actual data.
 * 
* * Protobuf type {@code org.hansken.extraction.plugin.grpc.RpcTransformation} */ public final class RpcTransformation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.hansken.extraction.plugin.grpc.RpcTransformation) RpcTransformationOrBuilder { private static final long serialVersionUID = 0L; // Use RpcTransformation.newBuilder() to construct. private RpcTransformation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RpcTransformation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RpcTransformation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hansken.extraction.plugin.grpc.DataMessages.internal_static_org_hansken_extraction_plugin_grpc_RpcTransformation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hansken.extraction.plugin.grpc.DataMessages.internal_static_org_hansken_extraction_plugin_grpc_RpcTransformation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hansken.extraction.plugin.grpc.RpcTransformation.class, org.hansken.extraction.plugin.grpc.RpcTransformation.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RANGEDTRANSFORMATION(1), VALUE_NOT_SET(0); private final int value; private ValueCase(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 ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return RANGEDTRANSFORMATION; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int RANGEDTRANSFORMATION_FIELD_NUMBER = 1; /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; * @return Whether the rangedTransformation field is set. */ @java.lang.Override public boolean hasRangedTransformation() { return valueCase_ == 1; } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; * @return The rangedTransformation. */ @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcRangedTransformation getRangedTransformation() { if (valueCase_ == 1) { return (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_; } return org.hansken.extraction.plugin.grpc.RpcRangedTransformation.getDefaultInstance(); } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcRangedTransformationOrBuilder getRangedTransformationOrBuilder() { if (valueCase_ == 1) { return (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_; } return org.hansken.extraction.plugin.grpc.RpcRangedTransformation.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 (valueCase_ == 1) { output.writeMessage(1, (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hansken.extraction.plugin.grpc.RpcTransformation)) { return super.equals(obj); } org.hansken.extraction.plugin.grpc.RpcTransformation other = (org.hansken.extraction.plugin.grpc.RpcTransformation) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (!getRangedTransformation() .equals(other.getRangedTransformation())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + RANGEDTRANSFORMATION_FIELD_NUMBER; hash = (53 * hash) + getRangedTransformation().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hansken.extraction.plugin.grpc.RpcTransformation 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 org.hansken.extraction.plugin.grpc.RpcTransformation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hansken.extraction.plugin.grpc.RpcTransformation 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 org.hansken.extraction.plugin.grpc.RpcTransformation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hansken.extraction.plugin.grpc.RpcTransformation 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(org.hansken.extraction.plugin.grpc.RpcTransformation 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; } /** *
   **
   * Message containing one of several types of Transformations, like a super-class. Currently only
   * RpcRangedTransformation is supported.
   *
   * Transformations are pointers to actual raw data. They describe how data can be obtained by reading on certain
   * positions, using decryption, or combinations of these. The benefit of using Transformations is that they take up
   * less space than the actual data.
   * 
* * Protobuf type {@code org.hansken.extraction.plugin.grpc.RpcTransformation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.hansken.extraction.plugin.grpc.RpcTransformation) org.hansken.extraction.plugin.grpc.RpcTransformationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hansken.extraction.plugin.grpc.DataMessages.internal_static_org_hansken_extraction_plugin_grpc_RpcTransformation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hansken.extraction.plugin.grpc.DataMessages.internal_static_org_hansken_extraction_plugin_grpc_RpcTransformation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hansken.extraction.plugin.grpc.RpcTransformation.class, org.hansken.extraction.plugin.grpc.RpcTransformation.Builder.class); } // Construct using org.hansken.extraction.plugin.grpc.RpcTransformation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (rangedTransformationBuilder_ != null) { rangedTransformationBuilder_.clear(); } valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hansken.extraction.plugin.grpc.DataMessages.internal_static_org_hansken_extraction_plugin_grpc_RpcTransformation_descriptor; } @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcTransformation getDefaultInstanceForType() { return org.hansken.extraction.plugin.grpc.RpcTransformation.getDefaultInstance(); } @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcTransformation build() { org.hansken.extraction.plugin.grpc.RpcTransformation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcTransformation buildPartial() { org.hansken.extraction.plugin.grpc.RpcTransformation result = new org.hansken.extraction.plugin.grpc.RpcTransformation(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.hansken.extraction.plugin.grpc.RpcTransformation result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(org.hansken.extraction.plugin.grpc.RpcTransformation result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 1 && rangedTransformationBuilder_ != null) { result.value_ = rangedTransformationBuilder_.build(); } } @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 org.hansken.extraction.plugin.grpc.RpcTransformation) { return mergeFrom((org.hansken.extraction.plugin.grpc.RpcTransformation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hansken.extraction.plugin.grpc.RpcTransformation other) { if (other == org.hansken.extraction.plugin.grpc.RpcTransformation.getDefaultInstance()) return this; switch (other.getValueCase()) { case RANGEDTRANSFORMATION: { mergeRangedTransformation(other.getRangedTransformation()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRangedTransformationFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 1; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< org.hansken.extraction.plugin.grpc.RpcRangedTransformation, org.hansken.extraction.plugin.grpc.RpcRangedTransformation.Builder, org.hansken.extraction.plugin.grpc.RpcRangedTransformationOrBuilder> rangedTransformationBuilder_; /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; * @return Whether the rangedTransformation field is set. */ @java.lang.Override public boolean hasRangedTransformation() { return valueCase_ == 1; } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; * @return The rangedTransformation. */ @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcRangedTransformation getRangedTransformation() { if (rangedTransformationBuilder_ == null) { if (valueCase_ == 1) { return (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_; } return org.hansken.extraction.plugin.grpc.RpcRangedTransformation.getDefaultInstance(); } else { if (valueCase_ == 1) { return rangedTransformationBuilder_.getMessage(); } return org.hansken.extraction.plugin.grpc.RpcRangedTransformation.getDefaultInstance(); } } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ public Builder setRangedTransformation(org.hansken.extraction.plugin.grpc.RpcRangedTransformation value) { if (rangedTransformationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { rangedTransformationBuilder_.setMessage(value); } valueCase_ = 1; return this; } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ public Builder setRangedTransformation( org.hansken.extraction.plugin.grpc.RpcRangedTransformation.Builder builderForValue) { if (rangedTransformationBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { rangedTransformationBuilder_.setMessage(builderForValue.build()); } valueCase_ = 1; return this; } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ public Builder mergeRangedTransformation(org.hansken.extraction.plugin.grpc.RpcRangedTransformation value) { if (rangedTransformationBuilder_ == null) { if (valueCase_ == 1 && value_ != org.hansken.extraction.plugin.grpc.RpcRangedTransformation.getDefaultInstance()) { value_ = org.hansken.extraction.plugin.grpc.RpcRangedTransformation.newBuilder((org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 1) { rangedTransformationBuilder_.mergeFrom(value); } else { rangedTransformationBuilder_.setMessage(value); } } valueCase_ = 1; return this; } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ public Builder clearRangedTransformation() { if (rangedTransformationBuilder_ == null) { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; } rangedTransformationBuilder_.clear(); } return this; } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ public org.hansken.extraction.plugin.grpc.RpcRangedTransformation.Builder getRangedTransformationBuilder() { return getRangedTransformationFieldBuilder().getBuilder(); } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcRangedTransformationOrBuilder getRangedTransformationOrBuilder() { if ((valueCase_ == 1) && (rangedTransformationBuilder_ != null)) { return rangedTransformationBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 1) { return (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_; } return org.hansken.extraction.plugin.grpc.RpcRangedTransformation.getDefaultInstance(); } } /** * .org.hansken.extraction.plugin.grpc.RpcRangedTransformation rangedTransformation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hansken.extraction.plugin.grpc.RpcRangedTransformation, org.hansken.extraction.plugin.grpc.RpcRangedTransformation.Builder, org.hansken.extraction.plugin.grpc.RpcRangedTransformationOrBuilder> getRangedTransformationFieldBuilder() { if (rangedTransformationBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = org.hansken.extraction.plugin.grpc.RpcRangedTransformation.getDefaultInstance(); } rangedTransformationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hansken.extraction.plugin.grpc.RpcRangedTransformation, org.hansken.extraction.plugin.grpc.RpcRangedTransformation.Builder, org.hansken.extraction.plugin.grpc.RpcRangedTransformationOrBuilder>( (org.hansken.extraction.plugin.grpc.RpcRangedTransformation) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; onChanged(); return rangedTransformationBuilder_; } @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:org.hansken.extraction.plugin.grpc.RpcTransformation) } // @@protoc_insertion_point(class_scope:org.hansken.extraction.plugin.grpc.RpcTransformation) private static final org.hansken.extraction.plugin.grpc.RpcTransformation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hansken.extraction.plugin.grpc.RpcTransformation(); } public static org.hansken.extraction.plugin.grpc.RpcTransformation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RpcTransformation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hansken.extraction.plugin.grpc.RpcTransformation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy