Class TypedValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder>
com.google.cloud.bigquery.migration.v2.TypedValue.Builder
All Implemented Interfaces:
TypedValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TypedValue

public static final class TypedValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<TypedValue.Builder> implements TypedValueOrBuilder
 A single strongly-typed value.
 
Protobuf type google.cloud.bigquery.migration.v2.TypedValue
  • 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<TypedValue.Builder>
    • clear

      public TypedValue.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.GeneratedMessage.Builder<TypedValue.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<TypedValue.Builder>
    • getDefaultInstanceForType

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

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

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

      public TypedValue.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<TypedValue.Builder>
    • mergeFrom

      public TypedValue.Builder mergeFrom(TypedValue other)
    • isInitialized

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

      public TypedValue.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<TypedValue.Builder>
      Throws:
      IOException
    • getValueCase

      public TypedValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface TypedValueOrBuilder
    • clearValue

      public TypedValue.Builder clearValue()
    • hasBoolValue

      public boolean hasBoolValue()
       A Boolean value: `true` or `false`.
       
      bool bool_value = 1;
      Specified by:
      hasBoolValue in interface TypedValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       A Boolean value: `true` or `false`.
       
      bool bool_value = 1;
      Specified by:
      getBoolValue in interface TypedValueOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public TypedValue.Builder setBoolValue(boolean value)
       A Boolean value: `true` or `false`.
       
      bool bool_value = 1;
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public TypedValue.Builder clearBoolValue()
       A Boolean value: `true` or `false`.
       
      bool bool_value = 1;
      Returns:
      This builder for chaining.
    • hasInt64Value

      public boolean hasInt64Value()
       A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
       
      int64 int64_value = 2;
      Specified by:
      hasInt64Value in interface TypedValueOrBuilder
      Returns:
      Whether the int64Value field is set.
    • getInt64Value

      public long getInt64Value()
       A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
       
      int64 int64_value = 2;
      Specified by:
      getInt64Value in interface TypedValueOrBuilder
      Returns:
      The int64Value.
    • setInt64Value

      public TypedValue.Builder setInt64Value(long value)
       A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
       
      int64 int64_value = 2;
      Parameters:
      value - The int64Value to set.
      Returns:
      This builder for chaining.
    • clearInt64Value

      public TypedValue.Builder clearInt64Value()
       A 64-bit integer. Its range is approximately `+/-9.2x10^18`.
       
      int64 int64_value = 2;
      Returns:
      This builder for chaining.
    • hasDoubleValue

      public boolean hasDoubleValue()
       A 64-bit double-precision floating-point number. Its magnitude
       is approximately `+/-10^(+/-300)` and it has 16 significant digits of
       precision.
       
      double double_value = 3;
      Specified by:
      hasDoubleValue in interface TypedValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       A 64-bit double-precision floating-point number. Its magnitude
       is approximately `+/-10^(+/-300)` and it has 16 significant digits of
       precision.
       
      double double_value = 3;
      Specified by:
      getDoubleValue in interface TypedValueOrBuilder
      Returns:
      The doubleValue.
    • setDoubleValue

      public TypedValue.Builder setDoubleValue(double value)
       A 64-bit double-precision floating-point number. Its magnitude
       is approximately `+/-10^(+/-300)` and it has 16 significant digits of
       precision.
       
      double double_value = 3;
      Parameters:
      value - The doubleValue to set.
      Returns:
      This builder for chaining.
    • clearDoubleValue

      public TypedValue.Builder clearDoubleValue()
       A 64-bit double-precision floating-point number. Its magnitude
       is approximately `+/-10^(+/-300)` and it has 16 significant digits of
       precision.
       
      double double_value = 3;
      Returns:
      This builder for chaining.
    • hasStringValue

      public boolean hasStringValue()
       A variable-length string value.
       
      string string_value = 4;
      Specified by:
      hasStringValue in interface TypedValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       A variable-length string value.
       
      string string_value = 4;
      Specified by:
      getStringValue in interface TypedValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       A variable-length string value.
       
      string string_value = 4;
      Specified by:
      getStringValueBytes in interface TypedValueOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public TypedValue.Builder setStringValue(String value)
       A variable-length string value.
       
      string string_value = 4;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public TypedValue.Builder clearStringValue()
       A variable-length string value.
       
      string string_value = 4;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public TypedValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       A variable-length string value.
       
      string string_value = 4;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • hasDistributionValue

      public boolean hasDistributionValue()
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
      Specified by:
      hasDistributionValue in interface TypedValueOrBuilder
      Returns:
      Whether the distributionValue field is set.
    • getDistributionValue

      public Distribution getDistributionValue()
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
      Specified by:
      getDistributionValue in interface TypedValueOrBuilder
      Returns:
      The distributionValue.
    • setDistributionValue

      public TypedValue.Builder setDistributionValue(Distribution value)
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
    • setDistributionValue

      public TypedValue.Builder setDistributionValue(Distribution.Builder builderForValue)
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
    • mergeDistributionValue

      public TypedValue.Builder mergeDistributionValue(Distribution value)
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
    • clearDistributionValue

      public TypedValue.Builder clearDistributionValue()
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
    • getDistributionValueBuilder

      public Distribution.Builder getDistributionValueBuilder()
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
    • getDistributionValueOrBuilder

      public DistributionOrBuilder getDistributionValueOrBuilder()
       A distribution value.
       
      .google.api.Distribution distribution_value = 5;
      Specified by:
      getDistributionValueOrBuilder in interface TypedValueOrBuilder