public interface ResourceReferenceOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getChildType()
The fully-qualified message name of a child of the type that this field
references.
|
com.google.protobuf.ByteString |
getChildTypeBytes()
The fully-qualified message name of a child of the type that this field
references.
|
String |
getType()
The unified resource type name of the type that this field references.
|
com.google.protobuf.ByteString |
getTypeBytes()
The unified resource type name of the type that this field references.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getType()
The unified resource type 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"
}];
}
string type = 1;com.google.protobuf.ByteString getTypeBytes()
The unified resource type 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"
}];
}
string type = 1;String getChildType()
The fully-qualified message name of a child of the type that this field
references.
This is useful for `parent` fields where a resource has more than one
possible type of parent.
Example:
message ListLogEntriesRequest {
string parent = 1 [(google.api.resource_reference) = {
child_type: "logging.googleapis.com/LogEntry"
};
}
If the referenced message is in the same proto package, the service name
may be omitted:
message ListLogEntriesRequest {
string parent = 1
[(google.api.resource_reference).child_type = "LogEntry"];
}
string child_type = 2;com.google.protobuf.ByteString getChildTypeBytes()
The fully-qualified message name of a child of the type that this field
references.
This is useful for `parent` fields where a resource has more than one
possible type of parent.
Example:
message ListLogEntriesRequest {
string parent = 1 [(google.api.resource_reference) = {
child_type: "logging.googleapis.com/LogEntry"
};
}
If the referenced message is in the same proto package, the service name
may be omitted:
message ListLogEntriesRequest {
string parent = 1
[(google.api.resource_reference).child_type = "LogEntry"];
}
string child_type = 2;