public static final class ResourceReference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder> implements ResourceReferenceOrBuilder
An annotation designating that this field is a reference to a resource defined by another message.Protobuf type
google.api.ResourceReference| Modifier and Type | Method and Description |
|---|---|
ResourceReference.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResourceReference |
build() |
ResourceReference |
buildPartial() |
ResourceReference.Builder |
clear() |
ResourceReference.Builder |
clearChildType()
The fully-qualified message name of a child of the type that this field
references.
|
ResourceReference.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ResourceReference.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ResourceReference.Builder |
clearType()
The unified resource type name of the type that this field references.
|
ResourceReference.Builder |
clone() |
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.
|
ResourceReference |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResourceReference.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ResourceReference.Builder |
mergeFrom(com.google.protobuf.Message other) |
ResourceReference.Builder |
mergeFrom(ResourceReference other) |
ResourceReference.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ResourceReference.Builder |
setChildType(String value)
The fully-qualified message name of a child of the type that this field
references.
|
ResourceReference.Builder |
setChildTypeBytes(com.google.protobuf.ByteString value)
The fully-qualified message name of a child of the type that this field
references.
|
ResourceReference.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResourceReference.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ResourceReference.Builder |
setType(String value)
The unified resource type name of the type that this field references.
|
ResourceReference.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The unified resource type name of the type that this field references.
|
ResourceReference.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ResourceReference build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ResourceReference buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ResourceReference.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceReference.Builder>public ResourceReference.Builder mergeFrom(ResourceReference other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public ResourceReference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceReference.Builder>IOExceptionpublic String 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;getType in interface ResourceReferenceOrBuilderpublic 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;getTypeBytes in interface ResourceReferenceOrBuilderpublic ResourceReference.Builder setType(String value)
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;public ResourceReference.Builder clearType()
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;public ResourceReference.Builder setTypeBytes(com.google.protobuf.ByteString value)
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;public 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;getChildType in interface ResourceReferenceOrBuilderpublic 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;getChildTypeBytes in interface ResourceReferenceOrBuilderpublic ResourceReference.Builder setChildType(String value)
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;public ResourceReference.Builder clearChildType()
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;public ResourceReference.Builder setChildTypeBytes(com.google.protobuf.ByteString value)
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;public final ResourceReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>public final ResourceReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceReference.Builder>