public final class FieldBehaviorProto extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FIELD_BEHAVIOR_FIELD_NUMBER |
static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,List<FieldBehavior>> |
fieldBehavior
A designation of a specific field behavior (required, output only, etc.)
in protobuf messages.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Descriptors.FileDescriptor |
getDescriptor() |
static void |
registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) |
static void |
registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) |
public static final int FIELD_BEHAVIOR_FIELD_NUMBER
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,List<FieldBehavior>> fieldBehavior
A designation of a specific field behavior (required, output only, etc.)
in protobuf messages.
Examples:
string name = 1 [(google.api.field_behavior) = REQUIRED];
State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Duration ttl = 1
[(google.api.field_behavior) = INPUT_ONLY];
google.protobuf.Timestamp expire_time = 1
[(google.api.field_behavior) = OUTPUT_ONLY,
(google.api.field_behavior) = IMMUTABLE];
extend .google.protobuf.FieldOptions { ... }public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
Copyright © 2022 Google LLC. All rights reserved.