The proto2.TestAllTypes Class

proto2.TestAllTypes
> goog.proto2.Message

proto2.TestAllTypes()

Message TestAllTypes.

The proto2.TestAllTypes.NestedEnum Enum

Enumeration NestedEnum. … more

The proto2.TestAllTypes.NestedMessage Class

Message NestedMessage. … more

The proto2.TestAllTypes.OptionalGroup Class

Message OptionalGroup. … more

The proto2.TestAllTypes.RepeatedGroup Class

Message RepeatedGroup. … more

.add(field, value)

Inherited from goog.proto2.Message .

Adds the given value to the field specified by the given field descriptor. Note that the field must be repeated.

field {goog.proto2.FieldDescriptor}
The field in which to add the the value.
value {*}
The new value to add to the field.

.addRepeatedBool(value)

Adds a value to the repeated_bool field.

value {boolean}
The value to add.

.addRepeatedBytes(value)

Adds a value to the repeated_bytes field.

value {string}
The value to add.

.addRepeatedDouble(value)

Adds a value to the repeated_double field.

value {number}
The value to add.

.addRepeatedFixed32(value)

Adds a value to the repeated_fixed32 field.

value {number}
The value to add.

.addRepeatedFixed64(value)

Adds a value to the repeated_fixed64 field.

value {string}
The value to add.

.addRepeatedFloat(value)

Adds a value to the repeated_float field.

value {number}
The value to add.

.addRepeatedInt32(value)

Adds a value to the repeated_int32 field.

value {number}
The value to add.

.addRepeatedInt64(value)

Adds a value to the repeated_int64 field.

value {string}
The value to add.

.addRepeatedInt64Number(value)

Adds a value to the repeated_int64_number field.

value {number}
The value to add.

.addRepeatedInt64String(value)

Adds a value to the repeated_int64_string field.

value {string}
The value to add.

.addRepeatedNestedEnum(value)

Adds a value to the repeated_nested_enum field.

value {proto2.TestAllTypes.NestedEnum}
The value to add.

.addRepeatedNestedMessage(value)

Adds a value to the repeated_nested_message field.

value {!proto2.TestAllTypes.NestedMessage}
The value to add.

.addRepeatedSfixed32(value)

Adds a value to the repeated_sfixed32 field.

value {number}
The value to add.

.addRepeatedSfixed64(value)

Adds a value to the repeated_sfixed64 field.

value {string}
The value to add.

.addRepeatedSint32(value)

Adds a value to the repeated_sint32 field.

value {number}
The value to add.

.addRepeatedSint64(value)

Adds a value to the repeated_sint64 field.

value {string}
The value to add.

.addRepeatedString(value)

Adds a value to the repeated_string field.

value {string}
The value to add.

.addRepeatedUint32(value)

Adds a value to the repeated_uint32 field.

value {number}
The value to add.

.addRepeatedUint64(value)

Adds a value to the repeated_uint64 field.

value {string}
The value to add.

.addRepeatedgroup(value)

Adds a value to the repeatedgroup field.

value {!proto2.TestAllTypes.RepeatedGroup}
The value to add.

.arrayOf(field)

Inherited from goog.proto2.Message .

Returns the array of values found for the given repeated field.

field {goog.proto2.FieldDescriptor}
The field for which to return the values.
returns {!Array}
The values found.

.clear(field)

Inherited from goog.proto2.Message .

Clears the field specified.

field {goog.proto2.FieldDescriptor}
The field to clear.

.clearOptionalBool()

Clears the values in the optional_bool field.

.clearOptionalBytes()

Clears the values in the optional_bytes field.

.clearOptionalDouble()

Clears the values in the optional_double field.

.clearOptionalFixed32()

Clears the values in the optional_fixed32 field.

.clearOptionalFixed64()

Clears the values in the optional_fixed64 field.

.clearOptionalFloat()

Clears the values in the optional_float field.

.clearOptionalInt32()

Clears the values in the optional_int32 field.

.clearOptionalInt64()

Clears the values in the optional_int64 field.

.clearOptionalInt64Number()

Clears the values in the optional_int64_number field.

.clearOptionalInt64String()

Clears the values in the optional_int64_string field.

.clearOptionalNestedEnum()

Clears the values in the optional_nested_enum field.

.clearOptionalNestedMessage()

Clears the values in the optional_nested_message field.

.clearOptionalSfixed32()

Clears the values in the optional_sfixed32 field.

.clearOptionalSfixed64()

Clears the values in the optional_sfixed64 field.

.clearOptionalSint32()

Clears the values in the optional_sint32 field.

.clearOptionalSint64()

Clears the values in the optional_sint64 field.

.clearOptionalString()

Clears the values in the optional_string field.

.clearOptionalUint32()

Clears the values in the optional_uint32 field.

.clearOptionalUint64()

Clears the values in the optional_uint64 field.

.clearOptionalgroup()

Clears the values in the optionalgroup field.

.clearRepeatedBool()

Clears the values in the repeated_bool field.

.clearRepeatedBytes()

Clears the values in the repeated_bytes field.

.clearRepeatedDouble()

Clears the values in the repeated_double field.

.clearRepeatedFixed32()

Clears the values in the repeated_fixed32 field.

.clearRepeatedFixed64()

Clears the values in the repeated_fixed64 field.

.clearRepeatedFloat()

Clears the values in the repeated_float field.

.clearRepeatedInt32()

Clears the values in the repeated_int32 field.

.clearRepeatedInt64()

Clears the values in the repeated_int64 field.

.clearRepeatedInt64Number()

Clears the values in the repeated_int64_number field.

.clearRepeatedInt64String()

Clears the values in the repeated_int64_string field.

.clearRepeatedNestedEnum()

Clears the values in the repeated_nested_enum field.

.clearRepeatedNestedMessage()

Clears the values in the repeated_nested_message field.

.clearRepeatedSfixed32()

Clears the values in the repeated_sfixed32 field.

.clearRepeatedSfixed64()

Clears the values in the repeated_sfixed64 field.

.clearRepeatedSint32()

Clears the values in the repeated_sint32 field.

.clearRepeatedSint64()

Clears the values in the repeated_sint64 field.

.clearRepeatedString()

Clears the values in the repeated_string field.

.clearRepeatedUint32()

Clears the values in the repeated_uint32 field.

.clearRepeatedUint64()

Clears the values in the repeated_uint64 field.

.clearRepeatedgroup()

Clears the values in the repeatedgroup field.

.clone

Overrides {@link goog.proto2.Message#clone} to specify its exact return type.

returns {!proto2.TestAllTypes}
The cloned message.

.copyFrom(message)

Inherited from goog.proto2.Message .

Recursively copies the known fields from the given message to this message. Removes the fields which are not present in the source message.

message {!goog.proto2.Message}
The source message.

.countOf(field)

Inherited from goog.proto2.Message .

Returns the number of values stored in the given field.

field {goog.proto2.FieldDescriptor}
The field for which to count the number of values.
returns {number}
The count of the values in the given field.

.equals(other)

Inherited from goog.proto2.Message .

Compares this message with another one ignoring the unknown fields.

other {*}
The other message.
returns {boolean}
Whether they are equal. Returns false if the {@code other} argument is a different type of message or not a message.

.forEachUnknown(callback, opt_scope)

Inherited from goog.proto2.Message .

Iterates over all the unknown fields in the message.

callback {function(number, *)}
A callback method which gets invoked for each unknown field.
opt_scope {Object=}
The scope under which to execute the callback. If not given, the current message will be used.

.get(field, opt_index)

Inherited from goog.proto2.Message .

Returns the value stored at the field specified by the given field descriptor.

field {goog.proto2.FieldDescriptor}
The field for which to get the value.
opt_index {number=}
If the field is repeated, the index to use when looking up the value.
returns {*}
The value found or null if none.

.getDescriptor()

Inherited from goog.proto2.Message .

Returns the descriptor which describes the current message.

returns {goog.proto2.Descriptor}
The descriptor.

.getOptionalBool()

Gets the value of the optional_bool field.

returns {?boolean}
The value.

.getOptionalBoolOrDefault()

Gets the value of the optional_bool field or the default value if not set.

returns {boolean}
The value.

.getOptionalBytes()

Gets the value of the optional_bytes field.

returns {?string}
The value.

.getOptionalBytesOrDefault()

Gets the value of the optional_bytes field or the default value if not set.

returns {string}
The value.

.getOptionalDouble()

Gets the value of the optional_double field.

returns {?number}
The value.

.getOptionalDoubleOrDefault()

Gets the value of the optional_double field or the default value if not set.

returns {number}
The value.

.getOptionalFixed32()

Gets the value of the optional_fixed32 field.

returns {?number}
The value.

.getOptionalFixed32OrDefault()

Gets the value of the optional_fixed32 field or the default value if not set.

returns {number}
The value.

.getOptionalFixed64()

Gets the value of the optional_fixed64 field.

returns {?string}
The value.

.getOptionalFixed64OrDefault()

Gets the value of the optional_fixed64 field or the default value if not set.

returns {string}
The value.

.getOptionalFloat()

Gets the value of the optional_float field.

returns {?number}
The value.

.getOptionalFloatOrDefault()

Gets the value of the optional_float field or the default value if not set.

returns {number}
The value.

.getOptionalInt32()

Gets the value of the optional_int32 field.

returns {?number}
The value.

.getOptionalInt32OrDefault()

Gets the value of the optional_int32 field or the default value if not set.

returns {number}
The value.

.getOptionalInt64()

Gets the value of the optional_int64 field.

returns {?string}
The value.

.getOptionalInt64Number()

Gets the value of the optional_int64_number field.

returns {?number}
The value.

.getOptionalInt64NumberOrDefault()

Gets the value of the optional_int64_number field or the default value if not set.

returns {number}
The value.

.getOptionalInt64OrDefault()

Gets the value of the optional_int64 field or the default value if not set.

returns {string}
The value.

.getOptionalInt64String()

Gets the value of the optional_int64_string field.

returns {?string}
The value.

.getOptionalInt64StringOrDefault()

Gets the value of the optional_int64_string field or the default value if not set.

returns {string}
The value.

.getOptionalNestedEnum()

Gets the value of the optional_nested_enum field.

returns {?proto2.TestAllTypes.NestedEnum}
The value.

.getOptionalNestedEnumOrDefault()

Gets the value of the optional_nested_enum field or the default value if not set.

returns {proto2.TestAllTypes.NestedEnum}
The value.

.getOptionalNestedMessage()

Gets the value of the optional_nested_message field.

returns {proto2.TestAllTypes.NestedMessage}
The value.

.getOptionalNestedMessageOrDefault()

Gets the value of the optional_nested_message field or the default value if not set.

returns {!proto2.TestAllTypes.NestedMessage}
The value.

.getOptionalSfixed32()

Gets the value of the optional_sfixed32 field.

returns {?number}
The value.

.getOptionalSfixed32OrDefault()

Gets the value of the optional_sfixed32 field or the default value if not set.

returns {number}
The value.

.getOptionalSfixed64()

Gets the value of the optional_sfixed64 field.

returns {?string}
The value.

.getOptionalSfixed64OrDefault()

Gets the value of the optional_sfixed64 field or the default value if not set.

returns {string}
The value.

.getOptionalSint32()

Gets the value of the optional_sint32 field.

returns {?number}
The value.

.getOptionalSint32OrDefault()

Gets the value of the optional_sint32 field or the default value if not set.

returns {number}
The value.

.getOptionalSint64()

Gets the value of the optional_sint64 field.

returns {?string}
The value.

.getOptionalSint64OrDefault()

Gets the value of the optional_sint64 field or the default value if not set.

returns {string}
The value.

.getOptionalString()

Gets the value of the optional_string field.

returns {?string}
The value.

.getOptionalStringOrDefault()

Gets the value of the optional_string field or the default value if not set.

returns {string}
The value.

.getOptionalUint32()

Gets the value of the optional_uint32 field.

returns {?number}
The value.

.getOptionalUint32OrDefault()

Gets the value of the optional_uint32 field or the default value if not set.

returns {number}
The value.

.getOptionalUint64()

Gets the value of the optional_uint64 field.

returns {?string}
The value.

.getOptionalUint64OrDefault()

Gets the value of the optional_uint64 field or the default value if not set.

returns {string}
The value.

.getOptionalgroup()

Gets the value of the optionalgroup field.

returns {proto2.TestAllTypes.OptionalGroup}
The value.

.getOptionalgroupOrDefault()

Gets the value of the optionalgroup field or the default value if not set.

returns {!proto2.TestAllTypes.OptionalGroup}
The value.

.getOrDefault(field, opt_index)

Inherited from goog.proto2.Message .

Returns the value stored at the field specified by the given field descriptor or the default value if none exists.

field {goog.proto2.FieldDescriptor}
The field for which to get the value.
opt_index {number=}
If the field is repeated, the index to use when looking up the value.
returns {*}
The value found or the default if none.

.getRepeatedBool(index)

Gets the value of the repeated_bool field at the index given.

index {number}
The index to lookup.
returns {?boolean}
The value.

.getRepeatedBoolOrDefault(index)

Gets the value of the repeated_bool field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {boolean}
The value.

.getRepeatedBytes(index)

Gets the value of the repeated_bytes field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedBytesOrDefault(index)

Gets the value of the repeated_bytes field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedDouble(index)

Gets the value of the repeated_double field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedDoubleOrDefault(index)

Gets the value of the repeated_double field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedFixed32(index)

Gets the value of the repeated_fixed32 field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedFixed32OrDefault(index)

Gets the value of the repeated_fixed32 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedFixed64(index)

Gets the value of the repeated_fixed64 field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedFixed64OrDefault(index)

Gets the value of the repeated_fixed64 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedFloat(index)

Gets the value of the repeated_float field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedFloatOrDefault(index)

Gets the value of the repeated_float field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedInt32(index)

Gets the value of the repeated_int32 field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedInt32OrDefault(index)

Gets the value of the repeated_int32 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedInt64(index)

Gets the value of the repeated_int64 field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedInt64Number(index)

Gets the value of the repeated_int64_number field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedInt64NumberOrDefault(index)

Gets the value of the repeated_int64_number field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedInt64OrDefault(index)

Gets the value of the repeated_int64 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedInt64String(index)

Gets the value of the repeated_int64_string field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedInt64StringOrDefault(index)

Gets the value of the repeated_int64_string field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedNestedEnum(index)

Gets the value of the repeated_nested_enum field at the index given.

index {number}
The index to lookup.
returns {?proto2.TestAllTypes.NestedEnum}
The value.

.getRepeatedNestedEnumOrDefault(index)

Gets the value of the repeated_nested_enum field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {proto2.TestAllTypes.NestedEnum}
The value.

.getRepeatedNestedMessage(index)

Gets the value of the repeated_nested_message field at the index given.

index {number}
The index to lookup.
returns {proto2.TestAllTypes.NestedMessage}
The value.

.getRepeatedNestedMessageOrDefault(index)

Gets the value of the repeated_nested_message field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {!proto2.TestAllTypes.NestedMessage}
The value.

.getRepeatedSfixed32(index)

Gets the value of the repeated_sfixed32 field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedSfixed32OrDefault(index)

Gets the value of the repeated_sfixed32 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedSfixed64(index)

Gets the value of the repeated_sfixed64 field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedSfixed64OrDefault(index)

Gets the value of the repeated_sfixed64 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedSint32(index)

Gets the value of the repeated_sint32 field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedSint32OrDefault(index)

Gets the value of the repeated_sint32 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedSint64(index)

Gets the value of the repeated_sint64 field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedSint64OrDefault(index)

Gets the value of the repeated_sint64 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedString(index)

Gets the value of the repeated_string field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedStringOrDefault(index)

Gets the value of the repeated_string field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedUint32(index)

Gets the value of the repeated_uint32 field at the index given.

index {number}
The index to lookup.
returns {?number}
The value.

.getRepeatedUint32OrDefault(index)

Gets the value of the repeated_uint32 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {number}
The value.

.getRepeatedUint64(index)

Gets the value of the repeated_uint64 field at the index given.

index {number}
The index to lookup.
returns {?string}
The value.

.getRepeatedUint64OrDefault(index)

Gets the value of the repeated_uint64 field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {string}
The value.

.getRepeatedgroup(index)

Gets the value of the repeatedgroup field at the index given.

index {number}
The index to lookup.
returns {proto2.TestAllTypes.RepeatedGroup}
The value.

.getRepeatedgroupOrDefault(index)

Gets the value of the repeatedgroup field at the index given or the default value if not set.

index {number}
The index to lookup.
returns {!proto2.TestAllTypes.RepeatedGroup}
The value.

.has(field)

Inherited from goog.proto2.Message .

Returns whether there is a value stored at the field specified by the given field descriptor.

field {goog.proto2.FieldDescriptor}
The field for which to check if there is a value.
returns {boolean}
True if a value was found.

.has$Value(tag)

Inherited from goog.proto2.Message .

Returns the whether or not the field indicated by the given tag has a value. GENERATED CODE USE ONLY. Basis of the has{Field} methods.

tag {number}
The tag.
returns {boolean}
Whether the message has a value for the field.

.hasOptionalBool()

returns {boolean}
Whether the optional_bool field has a value.

.hasOptionalBytes()

returns {boolean}
Whether the optional_bytes field has a value.

.hasOptionalDouble()

returns {boolean}
Whether the optional_double field has a value.

.hasOptionalFixed32()

returns {boolean}
Whether the optional_fixed32 field has a value.

.hasOptionalFixed64()

returns {boolean}
Whether the optional_fixed64 field has a value.

.hasOptionalFloat()

returns {boolean}
Whether the optional_float field has a value.

.hasOptionalInt32()

returns {boolean}
Whether the optional_int32 field has a value.

.hasOptionalInt64()

returns {boolean}
Whether the optional_int64 field has a value.

.hasOptionalInt64Number()

returns {boolean}
Whether the optional_int64_number field has a value.

.hasOptionalInt64String()

returns {boolean}
Whether the optional_int64_string field has a value.

.hasOptionalNestedEnum()

returns {boolean}
Whether the optional_nested_enum field has a value.

.hasOptionalNestedMessage()

returns {boolean}
Whether the optional_nested_message field has a value.

.hasOptionalSfixed32()

returns {boolean}
Whether the optional_sfixed32 field has a value.

.hasOptionalSfixed64()

returns {boolean}
Whether the optional_sfixed64 field has a value.

.hasOptionalSint32()

returns {boolean}
Whether the optional_sint32 field has a value.

.hasOptionalSint64()

returns {boolean}
Whether the optional_sint64 field has a value.

.hasOptionalString()

returns {boolean}
Whether the optional_string field has a value.

.hasOptionalUint32()

returns {boolean}
Whether the optional_uint32 field has a value.

.hasOptionalUint64()

returns {boolean}
Whether the optional_uint64 field has a value.

.hasOptionalgroup()

returns {boolean}
Whether the optionalgroup field has a value.

.hasRepeatedBool()

returns {boolean}
Whether the repeated_bool field has a value.

.hasRepeatedBytes()

returns {boolean}
Whether the repeated_bytes field has a value.

.hasRepeatedDouble()

returns {boolean}
Whether the repeated_double field has a value.

.hasRepeatedFixed32()

returns {boolean}
Whether the repeated_fixed32 field has a value.

.hasRepeatedFixed64()

returns {boolean}
Whether the repeated_fixed64 field has a value.

.hasRepeatedFloat()

returns {boolean}
Whether the repeated_float field has a value.

.hasRepeatedInt32()

returns {boolean}
Whether the repeated_int32 field has a value.

.hasRepeatedInt64()

returns {boolean}
Whether the repeated_int64 field has a value.

.hasRepeatedInt64Number()

returns {boolean}
Whether the repeated_int64_number field has a value.

.hasRepeatedInt64String()

returns {boolean}
Whether the repeated_int64_string field has a value.

.hasRepeatedNestedEnum()

returns {boolean}
Whether the repeated_nested_enum field has a value.

.hasRepeatedNestedMessage()

returns {boolean}
Whether the repeated_nested_message field has a value.

.hasRepeatedSfixed32()

returns {boolean}
Whether the repeated_sfixed32 field has a value.

.hasRepeatedSfixed64()

returns {boolean}
Whether the repeated_sfixed64 field has a value.

.hasRepeatedSint32()

returns {boolean}
Whether the repeated_sint32 field has a value.

.hasRepeatedSint64()

returns {boolean}
Whether the repeated_sint64 field has a value.

.hasRepeatedString()

returns {boolean}
Whether the repeated_string field has a value.

.hasRepeatedUint32()

returns {boolean}
Whether the repeated_uint32 field has a value.

.hasRepeatedUint64()

returns {boolean}
Whether the repeated_uint64 field has a value.

.hasRepeatedgroup()

returns {boolean}
Whether the repeatedgroup field has a value.

.initDefaults(simpleFieldsToo)

Inherited from goog.proto2.Message .

Fills in the protocol buffer with default values. Any fields that are already set will not be overridden.

simpleFieldsToo {boolean}
If true, all fields will be initialized; if false, only the nested messages and groups.

.initializeForLazyDeserializer(deserializer, data)

Inherited from goog.proto2.Message .

Initializes the message with a lazy deserializer and its associated data. This method should be called by internal methods ONLY.

deserializer {goog.proto2.LazyDeserializer}
The lazy deserializer to use to decode the data on the fly.
data {*}
The data to decode/deserialize.

.mergeFrom(message)

Inherited from goog.proto2.Message .

Merges the given message into this message. Singular fields will be overwritten, except for embedded messages which will be merged. Repeated fields will be concatenated.

message {!goog.proto2.Message}
The source message.

.optionalBoolCount()

returns {number}
The number of values in the optional_bool field.

.optionalBytesCount()

returns {number}
The number of values in the optional_bytes field.

.optionalDoubleCount()

returns {number}
The number of values in the optional_double field.

.optionalFixed32Count()

returns {number}
The number of values in the optional_fixed32 field.

.optionalFixed64Count()

returns {number}
The number of values in the optional_fixed64 field.

.optionalFloatCount()

returns {number}
The number of values in the optional_float field.

.optionalInt32Count()

returns {number}
The number of values in the optional_int32 field.

.optionalInt64Count()

returns {number}
The number of values in the optional_int64 field.

.optionalInt64NumberCount()

returns {number}
The number of values in the optional_int64_number field.

.optionalInt64StringCount()

returns {number}
The number of values in the optional_int64_string field.

.optionalNestedEnumCount()

returns {number}
The number of values in the optional_nested_enum field.

.optionalNestedMessageCount()

returns {number}
The number of values in the optional_nested_message field.

.optionalSfixed32Count()

returns {number}
The number of values in the optional_sfixed32 field.

.optionalSfixed64Count()

returns {number}
The number of values in the optional_sfixed64 field.

.optionalSint32Count()

returns {number}
The number of values in the optional_sint32 field.

.optionalSint64Count()

returns {number}
The number of values in the optional_sint64 field.

.optionalStringCount()

returns {number}
The number of values in the optional_string field.

.optionalUint32Count()

returns {number}
The number of values in the optional_uint32 field.

.optionalUint64Count()

returns {number}
The number of values in the optional_uint64 field.

.optionalgroupCount()

returns {number}
The number of values in the optionalgroup field.

.repeatedBoolArray()

Returns the array of values in the repeated_bool field.

returns {!Array.<boolean>}
The values in the field.

.repeatedBoolCount()

returns {number}
The number of values in the repeated_bool field.

.repeatedBytesArray()

Returns the array of values in the repeated_bytes field.

returns {!Array.<string>}
The values in the field.

.repeatedBytesCount()

returns {number}
The number of values in the repeated_bytes field.

.repeatedDoubleArray()

Returns the array of values in the repeated_double field.

returns {!Array.<number>}
The values in the field.

.repeatedDoubleCount()

returns {number}
The number of values in the repeated_double field.

.repeatedFixed32Array()

Returns the array of values in the repeated_fixed32 field.

returns {!Array.<number>}
The values in the field.

.repeatedFixed32Count()

returns {number}
The number of values in the repeated_fixed32 field.

.repeatedFixed64Array()

Returns the array of values in the repeated_fixed64 field.

returns {!Array.<string>}
The values in the field.

.repeatedFixed64Count()

returns {number}
The number of values in the repeated_fixed64 field.

.repeatedFloatArray()

Returns the array of values in the repeated_float field.

returns {!Array.<number>}
The values in the field.

.repeatedFloatCount()

returns {number}
The number of values in the repeated_float field.

.repeatedInt32Array()

Returns the array of values in the repeated_int32 field.

returns {!Array.<number>}
The values in the field.

.repeatedInt32Count()

returns {number}
The number of values in the repeated_int32 field.

.repeatedInt64Array()

Returns the array of values in the repeated_int64 field.

returns {!Array.<string>}
The values in the field.

.repeatedInt64Count()

returns {number}
The number of values in the repeated_int64 field.

.repeatedInt64NumberArray()

Returns the array of values in the repeated_int64_number field.

returns {!Array.<number>}
The values in the field.

.repeatedInt64NumberCount()

returns {number}
The number of values in the repeated_int64_number field.

.repeatedInt64StringArray()

Returns the array of values in the repeated_int64_string field.

returns {!Array.<string>}
The values in the field.

.repeatedInt64StringCount()

returns {number}
The number of values in the repeated_int64_string field.

.repeatedNestedEnumArray()

Returns the array of values in the repeated_nested_enum field.

returns {!Array.<proto2.TestAllTypes.NestedEnum>}
The values in the field.

.repeatedNestedEnumCount()

returns {number}
The number of values in the repeated_nested_enum field.

.repeatedNestedMessageArray()

Returns the array of values in the repeated_nested_message field.

returns {!Array.<!proto2.TestAllTypes.NestedMessage>}
The values in the field.

.repeatedNestedMessageCount()

returns {number}
The number of values in the repeated_nested_message field.

.repeatedSfixed32Array()

Returns the array of values in the repeated_sfixed32 field.

returns {!Array.<number>}
The values in the field.

.repeatedSfixed32Count()

returns {number}
The number of values in the repeated_sfixed32 field.

.repeatedSfixed64Array()

Returns the array of values in the repeated_sfixed64 field.

returns {!Array.<string>}
The values in the field.

.repeatedSfixed64Count()

returns {number}
The number of values in the repeated_sfixed64 field.

.repeatedSint32Array()

Returns the array of values in the repeated_sint32 field.

returns {!Array.<number>}
The values in the field.

.repeatedSint32Count()

returns {number}
The number of values in the repeated_sint32 field.

.repeatedSint64Array()

Returns the array of values in the repeated_sint64 field.

returns {!Array.<string>}
The values in the field.

.repeatedSint64Count()

returns {number}
The number of values in the repeated_sint64 field.

.repeatedStringArray()

Returns the array of values in the repeated_string field.

returns {!Array.<string>}
The values in the field.

.repeatedStringCount()

returns {number}
The number of values in the repeated_string field.

.repeatedUint32Array()

Returns the array of values in the repeated_uint32 field.

returns {!Array.<number>}
The values in the field.

.repeatedUint32Count()

returns {number}
The number of values in the repeated_uint32 field.

.repeatedUint64Array()

Returns the array of values in the repeated_uint64 field.

returns {!Array.<string>}
The values in the field.

.repeatedUint64Count()

returns {number}
The number of values in the repeated_uint64 field.

.repeatedgroupArray()

Returns the array of values in the repeatedgroup field.

returns {!Array.<!proto2.TestAllTypes.RepeatedGroup>}
The values in the field.

.repeatedgroupCount()

returns {number}
The number of values in the repeatedgroup field.

.set(field, value)

Inherited from goog.proto2.Message .

Stores the given value to the field specified by the given field descriptor. Note that the field must not be repeated.

field {goog.proto2.FieldDescriptor}
The field for which to set the value.
value {*}
The new value for the field.

.setOptionalBool(value)

Sets the value of the optional_bool field.

value {boolean}
The value.

.setOptionalBytes(value)

Sets the value of the optional_bytes field.

value {string}
The value.

.setOptionalDouble(value)

Sets the value of the optional_double field.

value {number}
The value.

.setOptionalFixed32(value)

Sets the value of the optional_fixed32 field.

value {number}
The value.

.setOptionalFixed64(value)

Sets the value of the optional_fixed64 field.

value {string}
The value.

.setOptionalFloat(value)

Sets the value of the optional_float field.

value {number}
The value.

.setOptionalInt32(value)

Sets the value of the optional_int32 field.

value {number}
The value.

.setOptionalInt64(value)

Sets the value of the optional_int64 field.

value {string}
The value.

.setOptionalInt64Number(value)

Sets the value of the optional_int64_number field.

value {number}
The value.

.setOptionalInt64String(value)

Sets the value of the optional_int64_string field.

value {string}
The value.

.setOptionalNestedEnum(value)

Sets the value of the optional_nested_enum field.

value {proto2.TestAllTypes.NestedEnum}
The value.

.setOptionalNestedMessage(value)

Sets the value of the optional_nested_message field.

value {!proto2.TestAllTypes.NestedMessage}
The value.

.setOptionalSfixed32(value)

Sets the value of the optional_sfixed32 field.

value {number}
The value.

.setOptionalSfixed64(value)

Sets the value of the optional_sfixed64 field.

value {string}
The value.

.setOptionalSint32(value)

Sets the value of the optional_sint32 field.

value {number}
The value.

.setOptionalSint64(value)

Sets the value of the optional_sint64 field.

value {string}
The value.

.setOptionalString(value)

Sets the value of the optional_string field.

value {string}
The value.

.setOptionalUint32(value)

Sets the value of the optional_uint32 field.

value {number}
The value.

.setOptionalUint64(value)

Sets the value of the optional_uint64 field.

value {string}
The value.

.setOptionalgroup(value)

Sets the value of the optionalgroup field.

value {!proto2.TestAllTypes.OptionalGroup}
The value.

.setUnknown(tag, value)

Inherited from goog.proto2.Message .

Sets the value of an unknown field, by tag.

tag {number}
The tag of an unknown field (must be >= 1).
value {*}
The value for that unknown field.