Class Expr.CreateStruct.Entry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Expr.CreateStruct.Entry.Builder>
com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder
All Implemented Interfaces:
Expr.CreateStruct.EntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Expr.CreateStruct.Entry

public static final class Expr.CreateStruct.Entry.Builder extends com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder> implements Expr.CreateStruct.EntryOrBuilder
 Represents an entry.
 
Protobuf type google.api.expr.v1alpha1.Expr.CreateStruct.Entry
  • Field Details

    • keyKindCase_

      private int keyKindCase_
    • keyKind_

      private Object keyKind_
    • bitField0_

      private int bitField0_
    • id_

      private long id_
    • mapKeyBuilder_

      private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder> mapKeyBuilder_
    • value_

      private Expr value_
    • valueBuilder_

      private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder> valueBuilder_
    • optionalEntry_

      private boolean optionalEntry_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • 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.GeneratedMessage.Builder<Expr.CreateStruct.Entry.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.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
    • getDefaultInstanceForType

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

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

      public Expr.CreateStruct.Entry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(Expr.CreateStruct.Entry result)
    • buildPartialOneofs

      private void buildPartialOneofs(Expr.CreateStruct.Entry result)
    • mergeFrom

      public Expr.CreateStruct.Entry.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<Expr.CreateStruct.Entry.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Entry.Builder>
    • mergeFrom

      public Expr.CreateStruct.Entry.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<Expr.CreateStruct.Entry.Builder>
      Throws:
      IOException
    • getKeyKindCase

      public Expr.CreateStruct.Entry.KeyKindCase getKeyKindCase()
      Specified by:
      getKeyKindCase in interface Expr.CreateStruct.EntryOrBuilder
    • clearKeyKind

      public Expr.CreateStruct.Entry.Builder clearKeyKind()
    • getId

      public long getId()
       Required. An id assigned to this node by the parser which is unique
       in a given expression tree. This is used to associate type
       information and other attributes to the node.
       
      int64 id = 1;
      Specified by:
      getId in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      The id.
    • setId

      public Expr.CreateStruct.Entry.Builder setId(long value)
       Required. An id assigned to this node by the parser which is unique
       in a given expression tree. This is used to associate type
       information and other attributes to the node.
       
      int64 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       Required. An id assigned to this node by the parser which is unique
       in a given expression tree. This is used to associate type
       information and other attributes to the node.
       
      int64 id = 1;
      Returns:
      This builder for chaining.
    • hasFieldKey

      public boolean hasFieldKey()
       The field key for a message creator statement.
       
      string field_key = 2;
      Specified by:
      hasFieldKey in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      Whether the fieldKey field is set.
    • getFieldKey

      public String getFieldKey()
       The field key for a message creator statement.
       
      string field_key = 2;
      Specified by:
      getFieldKey in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      The fieldKey.
    • getFieldKeyBytes

      public com.google.protobuf.ByteString getFieldKeyBytes()
       The field key for a message creator statement.
       
      string field_key = 2;
      Specified by:
      getFieldKeyBytes in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      The bytes for fieldKey.
    • setFieldKey

      public Expr.CreateStruct.Entry.Builder setFieldKey(String value)
       The field key for a message creator statement.
       
      string field_key = 2;
      Parameters:
      value - The fieldKey to set.
      Returns:
      This builder for chaining.
    • clearFieldKey

      public Expr.CreateStruct.Entry.Builder clearFieldKey()
       The field key for a message creator statement.
       
      string field_key = 2;
      Returns:
      This builder for chaining.
    • setFieldKeyBytes

      public Expr.CreateStruct.Entry.Builder setFieldKeyBytes(com.google.protobuf.ByteString value)
       The field key for a message creator statement.
       
      string field_key = 2;
      Parameters:
      value - The bytes for fieldKey to set.
      Returns:
      This builder for chaining.
    • hasMapKey

      public boolean hasMapKey()
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
      Specified by:
      hasMapKey in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      Whether the mapKey field is set.
    • getMapKey

      public Expr getMapKey()
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
      Specified by:
      getMapKey in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      The mapKey.
    • setMapKey

      public Expr.CreateStruct.Entry.Builder setMapKey(Expr value)
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
    • setMapKey

      public Expr.CreateStruct.Entry.Builder setMapKey(Expr.Builder builderForValue)
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
    • mergeMapKey

      public Expr.CreateStruct.Entry.Builder mergeMapKey(Expr value)
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
    • clearMapKey

      public Expr.CreateStruct.Entry.Builder clearMapKey()
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
    • getMapKeyBuilder

      public Expr.Builder getMapKeyBuilder()
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
    • getMapKeyOrBuilder

      public ExprOrBuilder getMapKeyOrBuilder()
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
      Specified by:
      getMapKeyOrBuilder in interface Expr.CreateStruct.EntryOrBuilder
    • getMapKeyFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder> getMapKeyFieldBuilder()
       The key expression for a map creation statement.
       
      .google.api.expr.v1alpha1.Expr map_key = 3;
    • hasValue

      public boolean hasValue()
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
      Specified by:
      hasValue in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public Expr getValue()
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
      Specified by:
      getValue in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      The value.
    • setValue

      public Expr.CreateStruct.Entry.Builder setValue(Expr value)
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
    • setValue

      public Expr.CreateStruct.Entry.Builder setValue(Expr.Builder builderForValue)
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
    • mergeValue

      public Expr.CreateStruct.Entry.Builder mergeValue(Expr value)
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
    • clearValue

      public Expr.CreateStruct.Entry.Builder clearValue()
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
    • getValueBuilder

      public Expr.Builder getValueBuilder()
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
    • getValueOrBuilder

      public ExprOrBuilder getValueOrBuilder()
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
      Specified by:
      getValueOrBuilder in interface Expr.CreateStruct.EntryOrBuilder
    • getValueFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder,ExprOrBuilder> getValueFieldBuilder()
       Required. The value assigned to the key.
      
       If the optional_entry field is true, the expression must resolve to an
       optional-typed value. If the optional value is present, the key will be
       set; however, if the optional value is absent, the key will be unset.
       
      .google.api.expr.v1alpha1.Expr value = 4;
    • getOptionalEntry

      public boolean getOptionalEntry()
       Whether the key-value pair is optional.
       
      bool optional_entry = 5;
      Specified by:
      getOptionalEntry in interface Expr.CreateStruct.EntryOrBuilder
      Returns:
      The optionalEntry.
    • setOptionalEntry

      public Expr.CreateStruct.Entry.Builder setOptionalEntry(boolean value)
       Whether the key-value pair is optional.
       
      bool optional_entry = 5;
      Parameters:
      value - The optionalEntry to set.
      Returns:
      This builder for chaining.
    • clearOptionalEntry

      public Expr.CreateStruct.Entry.Builder clearOptionalEntry()
       Whether the key-value pair is optional.
       
      bool optional_entry = 5;
      Returns:
      This builder for chaining.