Class ReportValue.Builder

  • All Implemented Interfaces:
    ReportValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ReportValue

    public static final class ReportValue.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
    implements ReportValueOrBuilder
     A single report value.
     
    Protobuf type google.cloud.channel.v1.ReportValue
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • clear

        public ReportValue.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.GeneratedMessageV3.Builder<ReportValue.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.GeneratedMessageV3.Builder<ReportValue.Builder>
      • getDefaultInstanceForType

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

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

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

        public ReportValue.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • setField

        public ReportValue.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • clearField

        public ReportValue.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • clearOneof

        public ReportValue.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • setRepeatedField

        public ReportValue.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • addRepeatedField

        public ReportValue.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • mergeFrom

        public ReportValue.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<ReportValue.Builder>
      • isInitialized

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

        public ReportValue.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<ReportValue.Builder>
        Throws:
        IOException
      • hasStringValue

        public boolean hasStringValue()
         A value of type `string`.
         
        string string_value = 1;
        Specified by:
        hasStringValue in interface ReportValueOrBuilder
        Returns:
        Whether the stringValue field is set.
      • getStringValueBytes

        public com.google.protobuf.ByteString getStringValueBytes()
         A value of type `string`.
         
        string string_value = 1;
        Specified by:
        getStringValueBytes in interface ReportValueOrBuilder
        Returns:
        The bytes for stringValue.
      • setStringValue

        public ReportValue.Builder setStringValue​(String value)
         A value of type `string`.
         
        string string_value = 1;
        Parameters:
        value - The stringValue to set.
        Returns:
        This builder for chaining.
      • clearStringValue

        public ReportValue.Builder clearStringValue()
         A value of type `string`.
         
        string string_value = 1;
        Returns:
        This builder for chaining.
      • setStringValueBytes

        public ReportValue.Builder setStringValueBytes​(com.google.protobuf.ByteString value)
         A value of type `string`.
         
        string string_value = 1;
        Parameters:
        value - The bytes for stringValue to set.
        Returns:
        This builder for chaining.
      • hasIntValue

        public boolean hasIntValue()
         A value of type `int`.
         
        int64 int_value = 2;
        Specified by:
        hasIntValue in interface ReportValueOrBuilder
        Returns:
        Whether the intValue field is set.
      • getIntValue

        public long getIntValue()
         A value of type `int`.
         
        int64 int_value = 2;
        Specified by:
        getIntValue in interface ReportValueOrBuilder
        Returns:
        The intValue.
      • setIntValue

        public ReportValue.Builder setIntValue​(long value)
         A value of type `int`.
         
        int64 int_value = 2;
        Parameters:
        value - The intValue to set.
        Returns:
        This builder for chaining.
      • clearIntValue

        public ReportValue.Builder clearIntValue()
         A value of type `int`.
         
        int64 int_value = 2;
        Returns:
        This builder for chaining.
      • hasDecimalValue

        public boolean hasDecimalValue()
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
        Specified by:
        hasDecimalValue in interface ReportValueOrBuilder
        Returns:
        Whether the decimalValue field is set.
      • getDecimalValue

        public com.google.type.Decimal getDecimalValue()
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
        Specified by:
        getDecimalValue in interface ReportValueOrBuilder
        Returns:
        The decimalValue.
      • setDecimalValue

        public ReportValue.Builder setDecimalValue​(com.google.type.Decimal value)
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
      • setDecimalValue

        public ReportValue.Builder setDecimalValue​(com.google.type.Decimal.Builder builderForValue)
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
      • mergeDecimalValue

        public ReportValue.Builder mergeDecimalValue​(com.google.type.Decimal value)
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
      • clearDecimalValue

        public ReportValue.Builder clearDecimalValue()
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
      • getDecimalValueBuilder

        public com.google.type.Decimal.Builder getDecimalValueBuilder()
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
      • getDecimalValueOrBuilder

        public com.google.type.DecimalOrBuilder getDecimalValueOrBuilder()
         A value of type `google.type.Decimal`, representing non-integer numeric
         values.
         
        .google.type.Decimal decimal_value = 3;
        Specified by:
        getDecimalValueOrBuilder in interface ReportValueOrBuilder
      • hasMoneyValue

        public boolean hasMoneyValue()
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
        Specified by:
        hasMoneyValue in interface ReportValueOrBuilder
        Returns:
        Whether the moneyValue field is set.
      • getMoneyValue

        public com.google.type.Money getMoneyValue()
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
        Specified by:
        getMoneyValue in interface ReportValueOrBuilder
        Returns:
        The moneyValue.
      • setMoneyValue

        public ReportValue.Builder setMoneyValue​(com.google.type.Money value)
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
      • setMoneyValue

        public ReportValue.Builder setMoneyValue​(com.google.type.Money.Builder builderForValue)
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
      • mergeMoneyValue

        public ReportValue.Builder mergeMoneyValue​(com.google.type.Money value)
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
      • clearMoneyValue

        public ReportValue.Builder clearMoneyValue()
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
      • getMoneyValueBuilder

        public com.google.type.Money.Builder getMoneyValueBuilder()
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
      • getMoneyValueOrBuilder

        public com.google.type.MoneyOrBuilder getMoneyValueOrBuilder()
         A value of type `google.type.Money` (currency code, whole units, decimal
         units).
         
        .google.type.Money money_value = 4;
        Specified by:
        getMoneyValueOrBuilder in interface ReportValueOrBuilder
      • hasDateValue

        public boolean hasDateValue()
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
        Specified by:
        hasDateValue in interface ReportValueOrBuilder
        Returns:
        Whether the dateValue field is set.
      • getDateValue

        public com.google.type.Date getDateValue()
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
        Specified by:
        getDateValue in interface ReportValueOrBuilder
        Returns:
        The dateValue.
      • setDateValue

        public ReportValue.Builder setDateValue​(com.google.type.Date value)
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
      • setDateValue

        public ReportValue.Builder setDateValue​(com.google.type.Date.Builder builderForValue)
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
      • mergeDateValue

        public ReportValue.Builder mergeDateValue​(com.google.type.Date value)
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
      • clearDateValue

        public ReportValue.Builder clearDateValue()
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
      • getDateValueBuilder

        public com.google.type.Date.Builder getDateValueBuilder()
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
      • getDateValueOrBuilder

        public com.google.type.DateOrBuilder getDateValueOrBuilder()
         A value of type `google.type.Date` (year, month, day).
         
        .google.type.Date date_value = 5;
        Specified by:
        getDateValueOrBuilder in interface ReportValueOrBuilder
      • hasDateTimeValue

        public boolean hasDateTimeValue()
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
        Specified by:
        hasDateTimeValue in interface ReportValueOrBuilder
        Returns:
        Whether the dateTimeValue field is set.
      • getDateTimeValue

        public com.google.type.DateTime getDateTimeValue()
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
        Specified by:
        getDateTimeValue in interface ReportValueOrBuilder
        Returns:
        The dateTimeValue.
      • setDateTimeValue

        public ReportValue.Builder setDateTimeValue​(com.google.type.DateTime value)
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
      • setDateTimeValue

        public ReportValue.Builder setDateTimeValue​(com.google.type.DateTime.Builder builderForValue)
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
      • mergeDateTimeValue

        public ReportValue.Builder mergeDateTimeValue​(com.google.type.DateTime value)
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
      • clearDateTimeValue

        public ReportValue.Builder clearDateTimeValue()
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
      • getDateTimeValueBuilder

        public com.google.type.DateTime.Builder getDateTimeValueBuilder()
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
      • getDateTimeValueOrBuilder

        public com.google.type.DateTimeOrBuilder getDateTimeValueOrBuilder()
         A value of type `google.type.DateTime` (year, month, day, hour, minute,
         second, and UTC offset or timezone.)
         
        .google.type.DateTime date_time_value = 6;
        Specified by:
        getDateTimeValueOrBuilder in interface ReportValueOrBuilder
      • setUnknownFields

        public final ReportValue.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>
      • mergeUnknownFields

        public final ReportValue.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReportValue.Builder>