proto2.TestAllTypes.NestedMessage
Classproto2.TestAllTypes.NestedMessage
> goog.proto2.Message
proto2.TestAllTypes.NestedMessage()
Message NestedMessage.
.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
{*}
.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
}
.bCount()
number
}
.cCount()
number
}
.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
}
.clearB()
Clears the values in the b field.
.clearC()
Clears the values in the c field.
.clone
Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
proto2.TestAllTypes.NestedMessage
}
.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
=}
.getB()
Gets the value of the b field.
number
}
.getBOrDefault()
Gets the value of the b field or the default value if not set.
number
}
.getC()
Gets the value of the c field.
number
}
.getCOrDefault()
Gets the value of the c field or the default value if not set.
number
}
.getDescriptor()
Inherited from goog.proto2.Message
.
Returns the descriptor which describes the current message.
goog.proto2.Descriptor
}
.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
=}
.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
}
.hasB()
boolean
}
.hasC()
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
}
.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
{*}
.setB(value)
Sets the value of the b field.
value
{number
}
.setC(value)
Sets the value of the c field.
value
{number
}
.setUnknown(tag, value)
Inherited from goog.proto2.Message
.
Sets the value of an unknown field, by tag.
tag
{number
}
value
{*}