Send feedback
Interface IExtendableMessage<T> (3.27.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public interface IExtendableMessage<T> : IMessage<T>, IMessage, IEquatable<T>, IDeepCloneable<T> where T : IExtendableMessage<T>
Generic interface for a Protocol Buffers message containing one or more extensions, where the type parameter is expected to be the same type as the implementation class.
This interface is experiemental and is subject to change.
Namespace
Google.Protobuf
Assembly
Google.Protobuf.dll
Type Parameter
Name
Description
T
Methods
ClearExtension<TValue>(Extension<T, TValue>)
void ClearExtension<TValue>(Extension<T, TValue> extension)
Clears the value of the specified extension
Parameter
Name
Description
extension
Extension
Type Parameter
Name
Description
TValue
ClearExtension<TValue>(RepeatedExtension<T, TValue>)
void ClearExtension<TValue>(RepeatedExtension<T, TValue> extension)
Clears the value of the specified repeated extension
Type Parameter
Name
Description
TValue
GetExtension<TValue>(Extension<T, TValue>)
TValue GetExtension<TValue>(Extension<T, TValue> extension)
Gets the value of the specified extension
Parameter
Name
Description
extension
Extension
Returns
Type
Description
TValue
Type Parameter
Name
Description
TValue
GetExtension<TValue>(RepeatedExtension<T, TValue>)
RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<T, TValue> extension)
Type Parameter
Name
Description
TValue
GetOrInitializeExtension<TValue>(RepeatedExtension<T, TValue>)
RepeatedField<TValue> GetOrInitializeExtension<TValue>(RepeatedExtension<T, TValue> extension)
Gets the value of the specified repeated extension, registering it if it hasn't already been registered.
Type Parameter
Name
Description
TValue
HasExtension<TValue>(Extension<T, TValue>)
bool HasExtension<TValue>(Extension<T, TValue> extension)
Gets whether the value of the specified extension is set
Parameter
Name
Description
extension
Extension
Returns
Type
Description
bool
Type Parameter
Name
Description
TValue
SetExtension<TValue>(Extension<T, TValue>, TValue)
void SetExtension<TValue>(Extension<T, TValue> extension, TValue value)
Sets the value of the specified extension
Parameters
Name
Description
extension
Extension
value
TValue
Type Parameter
Name
Description
TValue
Extension Methods
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]