Instance Methodswift-protobuf 1.28.1SwiftProtobuf
clearIdempotencyLevel
Clears the value of idempotencyLevel
. Subsequent reads from it will return its default value.
mutating func clearIdempotencyLevel()
Other members in extension
Types
enum IdempotencyLevel
Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST.
Type members
init(
) static let protoMessageName: String
static func == (lhs: Google_Protobuf_MethodOptions, rhs: Google_Protobuf_MethodOptions
) -> Bool
Show implementation details (1)
Hide implementation details
Instance members
var deprecated: Bool
Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods.
var features: Google_Protobuf_FeatureSet
Any features defined in the specific edition.
var hasDeprecated: Bool
Returns true if
deprecated
has been explicitly set.var hasFeatures: Bool
Returns true if
features
has been explicitly set.var hasIdempotencyLevel: Bool
Returns true if
idempotencyLevel
has been explicitly set.var idempotencyLevel: Google_Protobuf_MethodOptions.IdempotencyLevel
var isInitialized: Bool
var uninterpretedOption: [Google_Protobuf_UninterpretedOption]
The parser stores options it doesn’t recognize here. See above.
var unknownFields: UnknownStorage
func clearDeprecated(
) Clears the value of
deprecated
. Subsequent reads from it will return its default value.func clearFeatures(
) Clears the value of
features
. Subsequent reads from it will return its default value.func decodeMessage<D>(decoder: inout D
) throws func traverse<V>(visitor: inout V
) throws