Class InputContext.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
dev.cel.expr.conformance.test.InputContext.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InputContextOrBuilder, Cloneable
Enclosing class:
InputContext

public static final class InputContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder> implements InputContextOrBuilder
 Input context proto for the test case
 
Protobuf type cel.expr.conformance.test.InputContext
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • clear

      public InputContext.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • getDefaultInstanceForType

      public InputContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public InputContext build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InputContext buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public InputContext.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • setField

      public InputContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • clearField

      public InputContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • clearOneof

      public InputContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • setRepeatedField

      public InputContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • addRepeatedField

      public InputContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • mergeFrom

      public InputContext.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputContext.Builder>
    • mergeFrom

      public InputContext.Builder mergeFrom(InputContext other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • mergeFrom

      public InputContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputContext.Builder>
      Throws:
      IOException
    • getInputContextKindCase

      public InputContext.InputContextKindCase getInputContextKindCase()
      Specified by:
      getInputContextKindCase in interface InputContextOrBuilder
    • clearInputContextKind

      public InputContext.Builder clearInputContextKind()
    • hasContextMessage

      public boolean hasContextMessage()
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
      Specified by:
      hasContextMessage in interface InputContextOrBuilder
      Returns:
      Whether the contextMessage field is set.
    • getContextMessage

      public com.google.protobuf.Any getContextMessage()
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
      Specified by:
      getContextMessage in interface InputContextOrBuilder
      Returns:
      The contextMessage.
    • setContextMessage

      public InputContext.Builder setContextMessage(com.google.protobuf.Any value)
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
    • setContextMessage

      public InputContext.Builder setContextMessage(com.google.protobuf.Any.Builder builderForValue)
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
    • mergeContextMessage

      public InputContext.Builder mergeContextMessage(com.google.protobuf.Any value)
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
    • clearContextMessage

      public InputContext.Builder clearContextMessage()
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
    • getContextMessageBuilder

      public com.google.protobuf.Any.Builder getContextMessageBuilder()
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
    • getContextMessageOrBuilder

      public com.google.protobuf.AnyOrBuilder getContextMessageOrBuilder()
       A context message represents an input kind in the form of a proto
       message whose type is defined at runtime.
       
      .google.protobuf.Any context_message = 1;
      Specified by:
      getContextMessageOrBuilder in interface InputContextOrBuilder
    • hasContextExpr

      public boolean hasContextExpr()
       A context expression representing a context proto variable. The
       fields of the input proto.Messages are used as top-level variables within
       an Activation. The expression is evaluated using the cel environment
       configured for the test suite.
       
      string context_expr = 2;
      Specified by:
      hasContextExpr in interface InputContextOrBuilder
      Returns:
      Whether the contextExpr field is set.
    • getContextExpr

      public String getContextExpr()
       A context expression representing a context proto variable. The
       fields of the input proto.Messages are used as top-level variables within
       an Activation. The expression is evaluated using the cel environment
       configured for the test suite.
       
      string context_expr = 2;
      Specified by:
      getContextExpr in interface InputContextOrBuilder
      Returns:
      The contextExpr.
    • getContextExprBytes

      public com.google.protobuf.ByteString getContextExprBytes()
       A context expression representing a context proto variable. The
       fields of the input proto.Messages are used as top-level variables within
       an Activation. The expression is evaluated using the cel environment
       configured for the test suite.
       
      string context_expr = 2;
      Specified by:
      getContextExprBytes in interface InputContextOrBuilder
      Returns:
      The bytes for contextExpr.
    • setContextExpr

      public InputContext.Builder setContextExpr(String value)
       A context expression representing a context proto variable. The
       fields of the input proto.Messages are used as top-level variables within
       an Activation. The expression is evaluated using the cel environment
       configured for the test suite.
       
      string context_expr = 2;
      Parameters:
      value - The contextExpr to set.
      Returns:
      This builder for chaining.
    • clearContextExpr

      public InputContext.Builder clearContextExpr()
       A context expression representing a context proto variable. The
       fields of the input proto.Messages are used as top-level variables within
       an Activation. The expression is evaluated using the cel environment
       configured for the test suite.
       
      string context_expr = 2;
      Returns:
      This builder for chaining.
    • setContextExprBytes

      public InputContext.Builder setContextExprBytes(com.google.protobuf.ByteString value)
       A context expression representing a context proto variable. The
       fields of the input proto.Messages are used as top-level variables within
       an Activation. The expression is evaluated using the cel environment
       configured for the test suite.
       
      string context_expr = 2;
      Parameters:
      value - The bytes for contextExpr to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final InputContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>
    • mergeUnknownFields

      public final InputContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputContext.Builder>