Class Expr.CreateStruct.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateStruct,Expr.CreateStruct.Builder>
com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder
All Implemented Interfaces:
Expr.CreateStructOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
Expr.CreateStruct

public static final class Expr.CreateStruct.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateStruct,Expr.CreateStruct.Builder> implements Expr.CreateStructOrBuilder
 A map or message creation expression.

 Maps are constructed as `{'key_name': 'value'}`. Message construction is
 similar, but prefixed with a type name and composed of field ids:
 `types.MyType{field_id: 'value'}`.
 
Protobuf type google.api.expr.v1alpha1.Expr.CreateStruct
  • Method Details

    • getMessageName

      public String getMessageName()
       The type name of the message to be created, empty when creating map
       literals.
       
      string message_name = 1 [json_name = "messageName"];
      Specified by:
      getMessageName in interface Expr.CreateStructOrBuilder
      Returns:
      The messageName.
    • getMessageNameBytes

      public com.google.protobuf.ByteString getMessageNameBytes()
       The type name of the message to be created, empty when creating map
       literals.
       
      string message_name = 1 [json_name = "messageName"];
      Specified by:
      getMessageNameBytes in interface Expr.CreateStructOrBuilder
      Returns:
      The bytes for messageName.
    • setMessageName

      public Expr.CreateStruct.Builder setMessageName(String value)
       The type name of the message to be created, empty when creating map
       literals.
       
      string message_name = 1 [json_name = "messageName"];
      Parameters:
      value - The messageName to set.
      Returns:
      This builder for chaining.
    • clearMessageName

      public Expr.CreateStruct.Builder clearMessageName()
       The type name of the message to be created, empty when creating map
       literals.
       
      string message_name = 1 [json_name = "messageName"];
      Returns:
      This builder for chaining.
    • setMessageNameBytes

      public Expr.CreateStruct.Builder setMessageNameBytes(com.google.protobuf.ByteString value)
       The type name of the message to be created, empty when creating map
       literals.
       
      string message_name = 1 [json_name = "messageName"];
      Parameters:
      value - The bytes for messageName to set.
      Returns:
      This builder for chaining.
    • getEntriesList

      public List<Expr.CreateStruct.Entry> getEntriesList()
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
      Specified by:
      getEntriesList in interface Expr.CreateStructOrBuilder
    • getEntriesCount

      public int getEntriesCount()
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
      Specified by:
      getEntriesCount in interface Expr.CreateStructOrBuilder
    • getEntries

      public Expr.CreateStruct.Entry getEntries(int index)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
      Specified by:
      getEntries in interface Expr.CreateStructOrBuilder
    • setEntries

      public Expr.CreateStruct.Builder setEntries(int index, Expr.CreateStruct.Entry value)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • setEntries

      public Expr.CreateStruct.Builder setEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • addEntries

       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • addEntries

      public Expr.CreateStruct.Builder addEntries(int index, Expr.CreateStruct.Entry value)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • addEntries

      public Expr.CreateStruct.Builder addEntries(Expr.CreateStruct.Entry.Builder builderForValue)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • addEntries

      public Expr.CreateStruct.Builder addEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • addAllEntries

      public Expr.CreateStruct.Builder addAllEntries(Iterable<? extends Expr.CreateStruct.Entry> values)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • clearEntries

      public Expr.CreateStruct.Builder clearEntries()
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • removeEntries

      public Expr.CreateStruct.Builder removeEntries(int index)
       The entries in the creation expression.
       
      repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];