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.v1beta1.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.v1beta1.Expr.CreateStruct
  • Method Details

    • getType

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

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

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

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

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

      public List<Expr.CreateStruct.Entry> getEntriesList()
       The entries in the creation expression.
       
      repeated .google.api.expr.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • addEntries

       The entries in the creation expression.
       
      repeated .google.api.expr.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
    • clearEntries

      public Expr.CreateStruct.Builder clearEntries()
       The entries in the creation expression.
       
      repeated .google.api.expr.v1beta1.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.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];