someprotopackage.TestPackageTypes
Classsomeprotopackage.TestPackageTypes
> goog.proto2.Message
someprotopackage.TestPackageTypes()
Message TestPackageTypes.
.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
}
.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
}
.clearOptionalInt32()
Clears the values in the optional_int32 field.
.clearOtherAll()
Clears the values in the other_all field.
.clone
Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
someprotopackage.TestPackageTypes
}
.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
}
.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
}
.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
=}
.getOtherAll()
Gets the value of the other_all field.
proto2.TestAllTypes
}
.getOtherAllOrDefault()
Gets the value of the other_all field or the default value if not set.
proto2.TestAllTypes
}
.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
}
.hasOptionalInt32()
boolean
}
.hasOtherAll()
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
}
.optionalInt32Count()
number
}
.otherAllCount()
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
{*}
.setOptionalInt32(value)
Sets the value of the optional_int32 field.
value
{number
}
.setOtherAll(value)
Sets the value of the other_all field.
value
{!proto2.TestAllTypes
}
.setUnknown(tag, value)
Inherited from goog.proto2.Message
.
Sets the value of an unknown field, by tag.
tag
{number
}
value
{*}