public final class ResourceProto extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,ResourceDescriptor> |
resource
An annotation describing a resource.
|
static int |
RESOURCE_FIELD_NUMBER |
static int |
RESOURCE_REFERENCE_FIELD_NUMBER |
static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,ResourceReference> |
resourceReference
The fully qualified message name of the type that this field references.
|
| 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 RESOURCE_REFERENCE_FIELD_NUMBER
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,ResourceReference> resourceReference
The fully qualified message name of the type that this field references.
Marks this as a field referring to a resource in another message.
Example:
message Subscription {
string topic = 2 [(google.api.resource_reference) = {
type: "pubsub.googleapis.com/Topic"
}];
}
If the referenced message is in the same proto package, the package
may be omitted:
message Subscription {
string topic = 2
[(google.api.resource_reference).type = "Topic"];
}
Only one of {`resource`, `resource_reference`} may be set.
extend .google.protobuf.FieldOptions { ... }public static final int RESOURCE_FIELD_NUMBER
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,ResourceDescriptor> resource
An annotation describing a resource.
Example:
message Topic {
option (google.api.resource) = {
type: "pubsub.googleapis.com/Topic"
pattern: "projects/{project}/topics/{topic}"
};
}
Only one of {`resource`, `resource_reference`} may be set.
extend .google.protobuf.MessageOptions { ... }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()