proto2.TestAllTypes
Classproto2.TestAllTypes
> goog.proto2.Message
proto2.TestAllTypes()
Message TestAllTypes.
proto2.TestAllTypes.NestedEnum
EnumEnumeration NestedEnum. … more
proto2.TestAllTypes.NestedMessage
ClassMessage NestedMessage. … more
proto2.TestAllTypes.OptionalGroup
ClassMessage OptionalGroup. … more
proto2.TestAllTypes.RepeatedGroup
ClassMessage 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
}
value
{*}
.add$Value(tag, value)
[protected]Inherited from goog.proto2.Message
.
Adds the value to the *repeating* field indicated by the given tag. GENERATED CODE USE ONLY. Basis of the add{Field} methods.
tag
{number
}
value
{*}
.addRepeatedBool(value)
Adds a value to the repeated_bool field.
value
{boolean
}
.addRepeatedBytes(value)
Adds a value to the repeated_bytes field.
value
{string
}
.addRepeatedDouble(value)
Adds a value to the repeated_double field.
value
{number
}
.addRepeatedFixed32(value)
Adds a value to the repeated_fixed32 field.
value
{number
}
.addRepeatedFixed64(value)
Adds a value to the repeated_fixed64 field.
value
{string
}
.addRepeatedFloat(value)
Adds a value to the repeated_float field.
value
{number
}
.addRepeatedInt32(value)
Adds a value to the repeated_int32 field.
value
{number
}
.addRepeatedInt64(value)
Adds a value to the repeated_int64 field.
value
{string
}
.addRepeatedInt64Number(value)
Adds a value to the repeated_int64_number field.
value
{number
}
.addRepeatedInt64String(value)
Adds a value to the repeated_int64_string field.
value
{string
}
.addRepeatedNestedEnum(value)
Adds a value to the repeated_nested_enum field.
value
{proto2.TestAllTypes.NestedEnum
}
.addRepeatedNestedMessage(value)
Adds a value to the repeated_nested_message field.
value
{!proto2.TestAllTypes.NestedMessage
}
.addRepeatedSfixed32(value)
Adds a value to the repeated_sfixed32 field.
value
{number
}
.addRepeatedSfixed64(value)
Adds a value to the repeated_sfixed64 field.
value
{string
}
.addRepeatedSint32(value)
Adds a value to the repeated_sint32 field.
value
{number
}
.addRepeatedSint64(value)
Adds a value to the repeated_sint64 field.
value
{string
}
.addRepeatedString(value)
Adds a value to the repeated_string field.
value
{string
}
.addRepeatedUint32(value)
Adds a value to the repeated_uint32 field.
value
{number
}
.addRepeatedUint64(value)
Adds a value to the repeated_uint64 field.
value
{string
}
.addRepeatedgroup(value)
Adds a value to the repeatedgroup field.
value
{!proto2.TestAllTypes.RepeatedGroup
}
.array$Values(tag)
[protected]Inherited from goog.proto2.Message
.
Gets the values at the field indicated by the given tag. GENERATED CODE USE ONLY. Basis of the {field}Array methods.
tag
{number
}
Array
}
.arrayOf(field)
Inherited from goog.proto2.Message
.
Returns the array of values found for the given repeated field.
field
{goog.proto2.FieldDescriptor
}
Array
}
.clear(field)
Inherited from goog.proto2.Message
.
Clears the field specified.
field
{goog.proto2.FieldDescriptor
}
.clear$Field(tag)
[protected]Inherited from goog.proto2.Message
.
Clears the field specified by tag. GENERATED CODE USE ONLY. Basis of the clear{Field} methods.
tag
{number
}
.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.
proto2.TestAllTypes
}
.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
}
.count$Values(tag)
[protected]Inherited from goog.proto2.Message
.
Returns the number of values stored in the field by the given tag. GENERATED CODE USE ONLY. Basis of the {field}Count methods.
tag
{number
}
number
}
.countOf(field)
Inherited from goog.proto2.Message
.
Returns the number of values stored in the given field.
field
{goog.proto2.FieldDescriptor
}
number
}
.equals(other)
Inherited from goog.proto2.Message
.
Compares this message with another one ignoring the unknown fields.
other
{*}
boolean
}
.forEachUnknown(callback, opt_scope)
Inherited from goog.proto2.Message
.
Iterates over all the unknown fields in the message.
callback
{function
(number
, *)}
opt_scope
{Object
=}
.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
}
opt_index
{number
=}
.get$Value(tag, opt_index)
[protected]Inherited from goog.proto2.Message
.
Gets the value at the field indicated by the given tag. GENERATED CODE USE ONLY. Basis of the get{Field} methods.
tag
{number
}
opt_index
{number
=}
.get$ValueOrDefault(tag, opt_index)
[protected]Inherited from goog.proto2.Message
.
Gets the value at the field indicated by the given tag or the default value if none. GENERATED CODE USE ONLY. Basis of the get{Field} methods.
tag
{number
}
opt_index
{number
=}
.getDescriptor()
Inherited from goog.proto2.Message
.
Returns the descriptor which describes the current message.
goog.proto2.Descriptor
}
.getOptionalBool()
Gets the value of the optional_bool field.
boolean
}
.getOptionalBoolOrDefault()
Gets the value of the optional_bool field or the default value if not set.
boolean
}
.getOptionalBytes()
Gets the value of the optional_bytes field.
string
}
.getOptionalBytesOrDefault()
Gets the value of the optional_bytes field or the default value if not set.
string
}
.getOptionalDouble()
Gets the value of the optional_double field.
number
}
.getOptionalDoubleOrDefault()
Gets the value of the optional_double field or the default value if not set.
number
}
.getOptionalFixed32()
Gets the value of the optional_fixed32 field.
number
}
.getOptionalFixed32OrDefault()
Gets the value of the optional_fixed32 field or the default value if not set.
number
}
.getOptionalFixed64()
Gets the value of the optional_fixed64 field.
string
}
.getOptionalFixed64OrDefault()
Gets the value of the optional_fixed64 field or the default value if not set.
string
}
.getOptionalFloat()
Gets the value of the optional_float field.
number
}
.getOptionalFloatOrDefault()
Gets the value of the optional_float field or the default value if not set.
number
}
.getOptionalInt32()
Gets the value of the optional_int32 field.
number
}
.getOptionalInt32OrDefault()
Gets the value of the optional_int32 field or the default value if not set.
number
}
.getOptionalInt64()
Gets the value of the optional_int64 field.
string
}
.getOptionalInt64Number()
Gets the value of the optional_int64_number field.
number
}
.getOptionalInt64NumberOrDefault()
Gets the value of the optional_int64_number field or the default value if not set.
number
}
.getOptionalInt64OrDefault()
Gets the value of the optional_int64 field or the default value if not set.
string
}
.getOptionalInt64String()
Gets the value of the optional_int64_string field.
string
}
.getOptionalInt64StringOrDefault()
Gets the value of the optional_int64_string field or the default value if not set.
string
}
.getOptionalNestedEnum()
Gets the value of the optional_nested_enum field.
proto2.TestAllTypes.NestedEnum
}
.getOptionalNestedEnumOrDefault()
Gets the value of the optional_nested_enum field or the default value if not set.
proto2.TestAllTypes.NestedEnum
}
.getOptionalNestedMessage()
Gets the value of the optional_nested_message field.
proto2.TestAllTypes.NestedMessage
}
.getOptionalNestedMessageOrDefault()
Gets the value of the optional_nested_message field or the default value if not set.
proto2.TestAllTypes.NestedMessage
}
.getOptionalSfixed32()
Gets the value of the optional_sfixed32 field.
number
}
.getOptionalSfixed32OrDefault()
Gets the value of the optional_sfixed32 field or the default value if not set.
number
}
.getOptionalSfixed64()
Gets the value of the optional_sfixed64 field.
string
}
.getOptionalSfixed64OrDefault()
Gets the value of the optional_sfixed64 field or the default value if not set.
string
}
.getOptionalSint32()
Gets the value of the optional_sint32 field.
number
}
.getOptionalSint32OrDefault()
Gets the value of the optional_sint32 field or the default value if not set.
number
}
.getOptionalSint64()
Gets the value of the optional_sint64 field.
string
}
.getOptionalSint64OrDefault()
Gets the value of the optional_sint64 field or the default value if not set.
string
}
.getOptionalString()
Gets the value of the optional_string field.
string
}
.getOptionalStringOrDefault()
Gets the value of the optional_string field or the default value if not set.
string
}
.getOptionalUint32()
Gets the value of the optional_uint32 field.
number
}
.getOptionalUint32OrDefault()
Gets the value of the optional_uint32 field or the default value if not set.
number
}
.getOptionalUint64()
Gets the value of the optional_uint64 field.
string
}
.getOptionalUint64OrDefault()
Gets the value of the optional_uint64 field or the default value if not set.
string
}
.getOptionalgroup()
Gets the value of the optionalgroup field.
proto2.TestAllTypes.OptionalGroup
}
.getOptionalgroupOrDefault()
Gets the value of the optionalgroup field or the default value if not set.
proto2.TestAllTypes.OptionalGroup
}
.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
}
opt_index
{number
=}
.getRepeatedBool(index)
Gets the value of the repeated_bool field at the index given.
index
{number
}
boolean
}
.getRepeatedBoolOrDefault(index)
Gets the value of the repeated_bool field at the index given or the default value if not set.
index
{number
}
boolean
}
.getRepeatedBytes(index)
Gets the value of the repeated_bytes field at the index given.
index
{number
}
string
}
.getRepeatedBytesOrDefault(index)
Gets the value of the repeated_bytes field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedDouble(index)
Gets the value of the repeated_double field at the index given.
index
{number
}
number
}
.getRepeatedDoubleOrDefault(index)
Gets the value of the repeated_double field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedFixed32(index)
Gets the value of the repeated_fixed32 field at the index given.
index
{number
}
number
}
.getRepeatedFixed32OrDefault(index)
Gets the value of the repeated_fixed32 field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedFixed64(index)
Gets the value of the repeated_fixed64 field at the index given.
index
{number
}
string
}
.getRepeatedFixed64OrDefault(index)
Gets the value of the repeated_fixed64 field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedFloat(index)
Gets the value of the repeated_float field at the index given.
index
{number
}
number
}
.getRepeatedFloatOrDefault(index)
Gets the value of the repeated_float field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedInt32(index)
Gets the value of the repeated_int32 field at the index given.
index
{number
}
number
}
.getRepeatedInt32OrDefault(index)
Gets the value of the repeated_int32 field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedInt64(index)
Gets the value of the repeated_int64 field at the index given.
index
{number
}
string
}
.getRepeatedInt64Number(index)
Gets the value of the repeated_int64_number field at the index given.
index
{number
}
number
}
.getRepeatedInt64NumberOrDefault(index)
Gets the value of the repeated_int64_number field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedInt64OrDefault(index)
Gets the value of the repeated_int64 field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedInt64String(index)
Gets the value of the repeated_int64_string field at the index given.
index
{number
}
string
}
.getRepeatedInt64StringOrDefault(index)
Gets the value of the repeated_int64_string field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedNestedEnum(index)
Gets the value of the repeated_nested_enum field at the index given.
index
{number
}
proto2.TestAllTypes.NestedEnum
}
.getRepeatedNestedEnumOrDefault(index)
Gets the value of the repeated_nested_enum field at the index given or the default value if not set.
index
{number
}
proto2.TestAllTypes.NestedEnum
}
.getRepeatedNestedMessage(index)
Gets the value of the repeated_nested_message field at the index given.
index
{number
}
proto2.TestAllTypes.NestedMessage
}
.getRepeatedNestedMessageOrDefault(index)
Gets the value of the repeated_nested_message field at the index given or the default value if not set.
index
{number
}
proto2.TestAllTypes.NestedMessage
}
.getRepeatedSfixed32(index)
Gets the value of the repeated_sfixed32 field at the index given.
index
{number
}
number
}
.getRepeatedSfixed32OrDefault(index)
Gets the value of the repeated_sfixed32 field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedSfixed64(index)
Gets the value of the repeated_sfixed64 field at the index given.
index
{number
}
string
}
.getRepeatedSfixed64OrDefault(index)
Gets the value of the repeated_sfixed64 field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedSint32(index)
Gets the value of the repeated_sint32 field at the index given.
index
{number
}
number
}
.getRepeatedSint32OrDefault(index)
Gets the value of the repeated_sint32 field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedSint64(index)
Gets the value of the repeated_sint64 field at the index given.
index
{number
}
string
}
.getRepeatedSint64OrDefault(index)
Gets the value of the repeated_sint64 field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedString(index)
Gets the value of the repeated_string field at the index given.
index
{number
}
string
}
.getRepeatedStringOrDefault(index)
Gets the value of the repeated_string field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedUint32(index)
Gets the value of the repeated_uint32 field at the index given.
index
{number
}
number
}
.getRepeatedUint32OrDefault(index)
Gets the value of the repeated_uint32 field at the index given or the default value if not set.
index
{number
}
number
}
.getRepeatedUint64(index)
Gets the value of the repeated_uint64 field at the index given.
index
{number
}
string
}
.getRepeatedUint64OrDefault(index)
Gets the value of the repeated_uint64 field at the index given or the default value if not set.
index
{number
}
string
}
.getRepeatedgroup(index)
Gets the value of the repeatedgroup field at the index given.
index
{number
}
proto2.TestAllTypes.RepeatedGroup
}
.getRepeatedgroupOrDefault(index)
Gets the value of the repeatedgroup field at the index given or the default value if not set.
index
{number
}
proto2.TestAllTypes.RepeatedGroup
}
.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
}
boolean
}
.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
}
boolean
}
.hasOptionalBool()
boolean
}
.hasOptionalBytes()
boolean
}
.hasOptionalDouble()
boolean
}
.hasOptionalFixed32()
boolean
}
.hasOptionalFixed64()
boolean
}
.hasOptionalFloat()
boolean
}
.hasOptionalInt32()
boolean
}
.hasOptionalInt64()
boolean
}
.hasOptionalInt64Number()
boolean
}
.hasOptionalInt64String()
boolean
}
.hasOptionalNestedEnum()
boolean
}
.hasOptionalNestedMessage()
boolean
}
.hasOptionalSfixed32()
boolean
}
.hasOptionalSfixed64()
boolean
}
.hasOptionalSint32()
boolean
}
.hasOptionalSint64()
boolean
}
.hasOptionalString()
boolean
}
.hasOptionalUint32()
boolean
}
.hasOptionalUint64()
boolean
}
.hasOptionalgroup()
boolean
}
.hasRepeatedBool()
boolean
}
.hasRepeatedBytes()
boolean
}
.hasRepeatedDouble()
boolean
}
.hasRepeatedFixed32()
boolean
}
.hasRepeatedFixed64()
boolean
}
.hasRepeatedFloat()
boolean
}
.hasRepeatedInt32()
boolean
}
.hasRepeatedInt64()
boolean
}
.hasRepeatedInt64Number()
boolean
}
.hasRepeatedInt64String()
boolean
}
.hasRepeatedNestedEnum()
boolean
}
.hasRepeatedNestedMessage()
boolean
}
.hasRepeatedSfixed32()
boolean
}
.hasRepeatedSfixed64()
boolean
}
.hasRepeatedSint32()
boolean
}
.hasRepeatedSint64()
boolean
}
.hasRepeatedString()
boolean
}
.hasRepeatedUint32()
boolean
}
.hasRepeatedUint64()
boolean
}
.hasRepeatedgroup()
boolean
}
.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
}
.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
}
data
{*}
.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
}
.optionalBoolCount()
number
}
.optionalBytesCount()
number
}
.optionalDoubleCount()
number
}
.optionalFixed32Count()
number
}
.optionalFixed64Count()
number
}
.optionalFloatCount()
number
}
.optionalInt32Count()
number
}
.optionalInt64Count()
number
}
.optionalInt64NumberCount()
number
}
.optionalInt64StringCount()
number
}
.optionalNestedEnumCount()
number
}
.optionalNestedMessageCount()
number
}
.optionalSfixed32Count()
number
}
.optionalSfixed64Count()
number
}
.optionalSint32Count()
number
}
.optionalSint64Count()
number
}
.optionalStringCount()
number
}
.optionalUint32Count()
number
}
.optionalUint64Count()
number
}
.optionalgroupCount()
number
}
.repeatedBoolArray()
Returns the array of values in the repeated_bool field.
Array
.<boolean
>}
.repeatedBoolCount()
number
}
.repeatedBytesArray()
Returns the array of values in the repeated_bytes field.
Array
.<string
>}
.repeatedBytesCount()
number
}
.repeatedDoubleArray()
Returns the array of values in the repeated_double field.
Array
.<number
>}
.repeatedDoubleCount()
number
}
.repeatedFixed32Array()
Returns the array of values in the repeated_fixed32 field.
Array
.<number
>}
.repeatedFixed32Count()
number
}
.repeatedFixed64Array()
Returns the array of values in the repeated_fixed64 field.
Array
.<string
>}
.repeatedFixed64Count()
number
}
.repeatedFloatArray()
Returns the array of values in the repeated_float field.
Array
.<number
>}
.repeatedFloatCount()
number
}
.repeatedInt32Array()
Returns the array of values in the repeated_int32 field.
Array
.<number
>}
.repeatedInt32Count()
number
}
.repeatedInt64Array()
Returns the array of values in the repeated_int64 field.
Array
.<string
>}
.repeatedInt64Count()
number
}
.repeatedInt64NumberArray()
Returns the array of values in the repeated_int64_number field.
Array
.<number
>}
.repeatedInt64NumberCount()
number
}
.repeatedInt64StringArray()
Returns the array of values in the repeated_int64_string field.
Array
.<string
>}
.repeatedInt64StringCount()
number
}
.repeatedNestedEnumArray()
Returns the array of values in the repeated_nested_enum field.
Array
.<proto2.TestAllTypes.NestedEnum
>}
.repeatedNestedEnumCount()
number
}
.repeatedNestedMessageArray()
Returns the array of values in the repeated_nested_message field.
Array
.<!proto2.TestAllTypes.NestedMessage
>}
.repeatedNestedMessageCount()
number
}
.repeatedSfixed32Array()
Returns the array of values in the repeated_sfixed32 field.
Array
.<number
>}
.repeatedSfixed32Count()
number
}
.repeatedSfixed64Array()
Returns the array of values in the repeated_sfixed64 field.
Array
.<string
>}
.repeatedSfixed64Count()
number
}
.repeatedSint32Array()
Returns the array of values in the repeated_sint32 field.
Array
.<number
>}
.repeatedSint32Count()
number
}
.repeatedSint64Array()
Returns the array of values in the repeated_sint64 field.
Array
.<string
>}
.repeatedSint64Count()
number
}
.repeatedStringArray()
Returns the array of values in the repeated_string field.
Array
.<string
>}
.repeatedStringCount()
number
}
.repeatedUint32Array()
Returns the array of values in the repeated_uint32 field.
Array
.<number
>}
.repeatedUint32Count()
number
}
.repeatedUint64Array()
Returns the array of values in the repeated_uint64 field.
Array
.<string
>}
.repeatedUint64Count()
number
}
.repeatedgroupArray()
Returns the array of values in the repeatedgroup field.
Array
.<!proto2.TestAllTypes.RepeatedGroup
>}
.repeatedgroupCount()
number
}
.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
}
value
{*}
.set$Value(tag, value)
[protected]Inherited from goog.proto2.Message
.
Sets the value of the *non-repeating* field indicated by the given tag. GENERATED CODE USE ONLY. Basis of the set{Field} methods.
tag
{number
}
value
{*}
.setOptionalBool(value)
Sets the value of the optional_bool field.
value
{boolean
}
.setOptionalBytes(value)
Sets the value of the optional_bytes field.
value
{string
}
.setOptionalDouble(value)
Sets the value of the optional_double field.
value
{number
}
.setOptionalFixed32(value)
Sets the value of the optional_fixed32 field.
value
{number
}
.setOptionalFixed64(value)
Sets the value of the optional_fixed64 field.
value
{string
}
.setOptionalFloat(value)
Sets the value of the optional_float field.
value
{number
}
.setOptionalInt32(value)
Sets the value of the optional_int32 field.
value
{number
}
.setOptionalInt64(value)
Sets the value of the optional_int64 field.
value
{string
}
.setOptionalInt64Number(value)
Sets the value of the optional_int64_number field.
value
{number
}
.setOptionalInt64String(value)
Sets the value of the optional_int64_string field.
value
{string
}
.setOptionalNestedEnum(value)
Sets the value of the optional_nested_enum field.
value
{proto2.TestAllTypes.NestedEnum
}
.setOptionalNestedMessage(value)
Sets the value of the optional_nested_message field.
value
{!proto2.TestAllTypes.NestedMessage
}
.setOptionalSfixed32(value)
Sets the value of the optional_sfixed32 field.
value
{number
}
.setOptionalSfixed64(value)
Sets the value of the optional_sfixed64 field.
value
{string
}
.setOptionalSint32(value)
Sets the value of the optional_sint32 field.
value
{number
}
.setOptionalSint64(value)
Sets the value of the optional_sint64 field.
value
{string
}
.setOptionalString(value)
Sets the value of the optional_string field.
value
{string
}
.setOptionalUint32(value)
Sets the value of the optional_uint32 field.
value
{number
}
.setOptionalUint64(value)
Sets the value of the optional_uint64 field.
value
{string
}
.setOptionalgroup(value)
Sets the value of the optionalgroup field.
value
{!proto2.TestAllTypes.OptionalGroup
}
.setUnknown(tag, value)
Inherited from goog.proto2.Message
.
Sets the value of an unknown field, by tag.
tag
{number
}
value
{*}