Class FieldInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<FieldInfo,FieldInfo.Builder>
com.google.api.FieldInfo.Builder
All Implemented Interfaces:
FieldInfoOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
FieldInfo

public static final class FieldInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<FieldInfo,FieldInfo.Builder> implements FieldInfoOrBuilder
 Rich semantic information of an API field beyond basic typing.
 
Protobuf type google.api.FieldInfo
  • Method Details

    • getFormatValue

      public int getFormatValue()
       The standard format of a field value. This does not explicitly configure
       any API consumer, just documents the API's format for the field it is
       applied to.
       
      .google.api.FieldInfo.Format format = 1 [json_name = "format"];
      Specified by:
      getFormatValue in interface FieldInfoOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      public FieldInfo.Builder setFormatValue(int value)
       The standard format of a field value. This does not explicitly configure
       any API consumer, just documents the API's format for the field it is
       applied to.
       
      .google.api.FieldInfo.Format format = 1 [json_name = "format"];
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • getFormat

      public FieldInfo.Format getFormat()
       The standard format of a field value. This does not explicitly configure
       any API consumer, just documents the API's format for the field it is
       applied to.
       
      .google.api.FieldInfo.Format format = 1 [json_name = "format"];
      Specified by:
      getFormat in interface FieldInfoOrBuilder
      Returns:
      The format.
    • setFormat

      public FieldInfo.Builder setFormat(FieldInfo.Format value)
       The standard format of a field value. This does not explicitly configure
       any API consumer, just documents the API's format for the field it is
       applied to.
       
      .google.api.FieldInfo.Format format = 1 [json_name = "format"];
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public FieldInfo.Builder clearFormat()
       The standard format of a field value. This does not explicitly configure
       any API consumer, just documents the API's format for the field it is
       applied to.
       
      .google.api.FieldInfo.Format format = 1 [json_name = "format"];
      Returns:
      This builder for chaining.
    • getReferencedTypesList

      public List<TypeReference> getReferencedTypesList()
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
      Specified by:
      getReferencedTypesList in interface FieldInfoOrBuilder
    • getReferencedTypesCount

      public int getReferencedTypesCount()
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
      Specified by:
      getReferencedTypesCount in interface FieldInfoOrBuilder
    • getReferencedTypes

      public TypeReference getReferencedTypes(int index)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
      Specified by:
      getReferencedTypes in interface FieldInfoOrBuilder
    • setReferencedTypes

      public FieldInfo.Builder setReferencedTypes(int index, TypeReference value)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • setReferencedTypes

      public FieldInfo.Builder setReferencedTypes(int index, TypeReference.Builder builderForValue)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • addReferencedTypes

      public FieldInfo.Builder addReferencedTypes(TypeReference value)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • addReferencedTypes

      public FieldInfo.Builder addReferencedTypes(int index, TypeReference value)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • addReferencedTypes

      public FieldInfo.Builder addReferencedTypes(TypeReference.Builder builderForValue)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • addReferencedTypes

      public FieldInfo.Builder addReferencedTypes(int index, TypeReference.Builder builderForValue)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • addAllReferencedTypes

      public FieldInfo.Builder addAllReferencedTypes(Iterable<? extends TypeReference> values)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • clearReferencedTypes

      public FieldInfo.Builder clearReferencedTypes()
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
    • removeReferencedTypes

      public FieldInfo.Builder removeReferencedTypes(int index)
       The type(s) that the annotated, generic field may represent.
      
       Currently, this must only be used on fields of type `google.protobuf.Any`.
       Supporting other generic types may be considered in the future.
       
      repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];