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

com.expedia.open.tracing.api.Operand Maven / Gradle / Ivy

Go to download

This module contains common code for Haystack modules that detect and mask PCI and PII data; it also contains code that facilitates writing Kafka Streams applications.

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

package com.expedia.open.tracing.api;

/**
 * 
 * a single operand in the expression tree
 * 
* * Protobuf type {@code Operand} */ public final class Operand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Operand) OperandOrBuilder { // Use Operand.newBuilder() to construct. private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operand() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Operand( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { com.expedia.open.tracing.api.Field.Builder subBuilder = null; if (operandCase_ == 1) { subBuilder = ((com.expedia.open.tracing.api.Field) operand_).toBuilder(); } operand_ = input.readMessage(com.expedia.open.tracing.api.Field.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.expedia.open.tracing.api.Field) operand_); operand_ = subBuilder.buildPartial(); } operandCase_ = 1; break; } case 18: { com.expedia.open.tracing.api.ExpressionTree.Builder subBuilder = null; if (operandCase_ == 2) { subBuilder = ((com.expedia.open.tracing.api.ExpressionTree) operand_).toBuilder(); } operand_ = input.readMessage(com.expedia.open.tracing.api.ExpressionTree.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.expedia.open.tracing.api.ExpressionTree) operand_); operand_ = subBuilder.buildPartial(); } operandCase_ = 2; 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_Operand_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_Operand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.expedia.open.tracing.api.Operand.class, com.expedia.open.tracing.api.Operand.Builder.class); } private int operandCase_ = 0; private java.lang.Object operand_; public enum OperandCase implements com.google.protobuf.Internal.EnumLite { FIELD(1), EXPRESSION(2), OPERAND_NOT_SET(0); private final int value; private OperandCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OperandCase valueOf(int value) { return forNumber(value); } public static OperandCase forNumber(int value) { switch (value) { case 1: return FIELD; case 2: return EXPRESSION; case 0: return OPERAND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OperandCase getOperandCase() { return OperandCase.forNumber( operandCase_); } public static final int FIELD_FIELD_NUMBER = 1; /** *
   * leaf field value
   * 
* * optional .Field field = 1; */ public com.expedia.open.tracing.api.Field getField() { if (operandCase_ == 1) { return (com.expedia.open.tracing.api.Field) operand_; } return com.expedia.open.tracing.api.Field.getDefaultInstance(); } /** *
   * leaf field value
   * 
* * optional .Field field = 1; */ public com.expedia.open.tracing.api.FieldOrBuilder getFieldOrBuilder() { if (operandCase_ == 1) { return (com.expedia.open.tracing.api.Field) operand_; } return com.expedia.open.tracing.api.Field.getDefaultInstance(); } public static final int EXPRESSION_FIELD_NUMBER = 2; /** *
   * a nested expression tree
   * 
* * optional .ExpressionTree expression = 2; */ public com.expedia.open.tracing.api.ExpressionTree getExpression() { if (operandCase_ == 2) { return (com.expedia.open.tracing.api.ExpressionTree) operand_; } return com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance(); } /** *
   * a nested expression tree
   * 
* * optional .ExpressionTree expression = 2; */ public com.expedia.open.tracing.api.ExpressionTreeOrBuilder getExpressionOrBuilder() { if (operandCase_ == 2) { return (com.expedia.open.tracing.api.ExpressionTree) operand_; } return com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (operandCase_ == 1) { output.writeMessage(1, (com.expedia.open.tracing.api.Field) operand_); } if (operandCase_ == 2) { output.writeMessage(2, (com.expedia.open.tracing.api.ExpressionTree) operand_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operandCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.expedia.open.tracing.api.Field) operand_); } if (operandCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.expedia.open.tracing.api.ExpressionTree) operand_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.expedia.open.tracing.api.Operand)) { return super.equals(obj); } com.expedia.open.tracing.api.Operand other = (com.expedia.open.tracing.api.Operand) obj; boolean result = true; result = result && getOperandCase().equals( other.getOperandCase()); if (!result) return false; switch (operandCase_) { case 1: result = result && getField() .equals(other.getField()); break; case 2: result = result && getExpression() .equals(other.getExpression()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (operandCase_) { case 1: hash = (37 * hash) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getField().hashCode(); break; case 2: hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.expedia.open.tracing.api.Operand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.expedia.open.tracing.api.Operand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.expedia.open.tracing.api.Operand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.expedia.open.tracing.api.Operand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.expedia.open.tracing.api.Operand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.expedia.open.tracing.api.Operand 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.expedia.open.tracing.api.Operand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.expedia.open.tracing.api.Operand 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.expedia.open.tracing.api.Operand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.expedia.open.tracing.api.Operand parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.expedia.open.tracing.api.Operand prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 single operand in the expression tree
   * 
* * Protobuf type {@code Operand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Operand) com.expedia.open.tracing.api.OperandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_Operand_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_Operand_fieldAccessorTable .ensureFieldAccessorsInitialized( com.expedia.open.tracing.api.Operand.class, com.expedia.open.tracing.api.Operand.Builder.class); } // Construct using com.expedia.open.tracing.api.Operand.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); operandCase_ = 0; operand_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_Operand_descriptor; } public com.expedia.open.tracing.api.Operand getDefaultInstanceForType() { return com.expedia.open.tracing.api.Operand.getDefaultInstance(); } public com.expedia.open.tracing.api.Operand build() { com.expedia.open.tracing.api.Operand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.expedia.open.tracing.api.Operand buildPartial() { com.expedia.open.tracing.api.Operand result = new com.expedia.open.tracing.api.Operand(this); if (operandCase_ == 1) { if (fieldBuilder_ == null) { result.operand_ = operand_; } else { result.operand_ = fieldBuilder_.build(); } } if (operandCase_ == 2) { if (expressionBuilder_ == null) { result.operand_ = operand_; } else { result.operand_ = expressionBuilder_.build(); } } result.operandCase_ = operandCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.expedia.open.tracing.api.Operand) { return mergeFrom((com.expedia.open.tracing.api.Operand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.expedia.open.tracing.api.Operand other) { if (other == com.expedia.open.tracing.api.Operand.getDefaultInstance()) return this; switch (other.getOperandCase()) { case FIELD: { mergeField(other.getField()); break; } case EXPRESSION: { mergeExpression(other.getExpression()); break; } case OPERAND_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.expedia.open.tracing.api.Operand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.expedia.open.tracing.api.Operand) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int operandCase_ = 0; private java.lang.Object operand_; public OperandCase getOperandCase() { return OperandCase.forNumber( operandCase_); } public Builder clearOperand() { operandCase_ = 0; operand_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.expedia.open.tracing.api.Field, com.expedia.open.tracing.api.Field.Builder, com.expedia.open.tracing.api.FieldOrBuilder> fieldBuilder_; /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public com.expedia.open.tracing.api.Field getField() { if (fieldBuilder_ == null) { if (operandCase_ == 1) { return (com.expedia.open.tracing.api.Field) operand_; } return com.expedia.open.tracing.api.Field.getDefaultInstance(); } else { if (operandCase_ == 1) { return fieldBuilder_.getMessage(); } return com.expedia.open.tracing.api.Field.getDefaultInstance(); } } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public Builder setField(com.expedia.open.tracing.api.Field value) { if (fieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operand_ = value; onChanged(); } else { fieldBuilder_.setMessage(value); } operandCase_ = 1; return this; } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public Builder setField( com.expedia.open.tracing.api.Field.Builder builderForValue) { if (fieldBuilder_ == null) { operand_ = builderForValue.build(); onChanged(); } else { fieldBuilder_.setMessage(builderForValue.build()); } operandCase_ = 1; return this; } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public Builder mergeField(com.expedia.open.tracing.api.Field value) { if (fieldBuilder_ == null) { if (operandCase_ == 1 && operand_ != com.expedia.open.tracing.api.Field.getDefaultInstance()) { operand_ = com.expedia.open.tracing.api.Field.newBuilder((com.expedia.open.tracing.api.Field) operand_) .mergeFrom(value).buildPartial(); } else { operand_ = value; } onChanged(); } else { if (operandCase_ == 1) { fieldBuilder_.mergeFrom(value); } fieldBuilder_.setMessage(value); } operandCase_ = 1; return this; } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public Builder clearField() { if (fieldBuilder_ == null) { if (operandCase_ == 1) { operandCase_ = 0; operand_ = null; onChanged(); } } else { if (operandCase_ == 1) { operandCase_ = 0; operand_ = null; } fieldBuilder_.clear(); } return this; } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public com.expedia.open.tracing.api.Field.Builder getFieldBuilder() { return getFieldFieldBuilder().getBuilder(); } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ public com.expedia.open.tracing.api.FieldOrBuilder getFieldOrBuilder() { if ((operandCase_ == 1) && (fieldBuilder_ != null)) { return fieldBuilder_.getMessageOrBuilder(); } else { if (operandCase_ == 1) { return (com.expedia.open.tracing.api.Field) operand_; } return com.expedia.open.tracing.api.Field.getDefaultInstance(); } } /** *
     * leaf field value
     * 
* * optional .Field field = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.expedia.open.tracing.api.Field, com.expedia.open.tracing.api.Field.Builder, com.expedia.open.tracing.api.FieldOrBuilder> getFieldFieldBuilder() { if (fieldBuilder_ == null) { if (!(operandCase_ == 1)) { operand_ = com.expedia.open.tracing.api.Field.getDefaultInstance(); } fieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.expedia.open.tracing.api.Field, com.expedia.open.tracing.api.Field.Builder, com.expedia.open.tracing.api.FieldOrBuilder>( (com.expedia.open.tracing.api.Field) operand_, getParentForChildren(), isClean()); operand_ = null; } operandCase_ = 1; onChanged();; return fieldBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.expedia.open.tracing.api.ExpressionTree, com.expedia.open.tracing.api.ExpressionTree.Builder, com.expedia.open.tracing.api.ExpressionTreeOrBuilder> expressionBuilder_; /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public com.expedia.open.tracing.api.ExpressionTree getExpression() { if (expressionBuilder_ == null) { if (operandCase_ == 2) { return (com.expedia.open.tracing.api.ExpressionTree) operand_; } return com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance(); } else { if (operandCase_ == 2) { return expressionBuilder_.getMessage(); } return com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance(); } } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public Builder setExpression(com.expedia.open.tracing.api.ExpressionTree value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operand_ = value; onChanged(); } else { expressionBuilder_.setMessage(value); } operandCase_ = 2; return this; } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public Builder setExpression( com.expedia.open.tracing.api.ExpressionTree.Builder builderForValue) { if (expressionBuilder_ == null) { operand_ = builderForValue.build(); onChanged(); } else { expressionBuilder_.setMessage(builderForValue.build()); } operandCase_ = 2; return this; } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public Builder mergeExpression(com.expedia.open.tracing.api.ExpressionTree value) { if (expressionBuilder_ == null) { if (operandCase_ == 2 && operand_ != com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance()) { operand_ = com.expedia.open.tracing.api.ExpressionTree.newBuilder((com.expedia.open.tracing.api.ExpressionTree) operand_) .mergeFrom(value).buildPartial(); } else { operand_ = value; } onChanged(); } else { if (operandCase_ == 2) { expressionBuilder_.mergeFrom(value); } expressionBuilder_.setMessage(value); } operandCase_ = 2; return this; } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public Builder clearExpression() { if (expressionBuilder_ == null) { if (operandCase_ == 2) { operandCase_ = 0; operand_ = null; onChanged(); } } else { if (operandCase_ == 2) { operandCase_ = 0; operand_ = null; } expressionBuilder_.clear(); } return this; } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public com.expedia.open.tracing.api.ExpressionTree.Builder getExpressionBuilder() { return getExpressionFieldBuilder().getBuilder(); } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ public com.expedia.open.tracing.api.ExpressionTreeOrBuilder getExpressionOrBuilder() { if ((operandCase_ == 2) && (expressionBuilder_ != null)) { return expressionBuilder_.getMessageOrBuilder(); } else { if (operandCase_ == 2) { return (com.expedia.open.tracing.api.ExpressionTree) operand_; } return com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance(); } } /** *
     * a nested expression tree
     * 
* * optional .ExpressionTree expression = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.expedia.open.tracing.api.ExpressionTree, com.expedia.open.tracing.api.ExpressionTree.Builder, com.expedia.open.tracing.api.ExpressionTreeOrBuilder> getExpressionFieldBuilder() { if (expressionBuilder_ == null) { if (!(operandCase_ == 2)) { operand_ = com.expedia.open.tracing.api.ExpressionTree.getDefaultInstance(); } expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.expedia.open.tracing.api.ExpressionTree, com.expedia.open.tracing.api.ExpressionTree.Builder, com.expedia.open.tracing.api.ExpressionTreeOrBuilder>( (com.expedia.open.tracing.api.ExpressionTree) operand_, getParentForChildren(), isClean()); operand_ = null; } operandCase_ = 2; onChanged();; return expressionBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:Operand) } // @@protoc_insertion_point(class_scope:Operand) private static final com.expedia.open.tracing.api.Operand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.expedia.open.tracing.api.Operand(); } public static com.expedia.open.tracing.api.Operand getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Operand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Operand(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.expedia.open.tracing.api.Operand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy