public static final class TypeReference.Builder extends GeneratedMessageV3.Builder<TypeReference.Builder> implements TypeReferenceOrBuilder
A reference to a message type, for use in FieldInfo.
Protobuf type google.api.TypeReference
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TypeReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TypeReference build()
buildPartial()
public TypeReference buildPartial()
clear()
public TypeReference.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TypeReference.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TypeReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTypeName()
public TypeReference.Builder clearTypeName()
The name of the type that the annotated, generic field may represent.
If the type is in the same protobuf package, the value can be the simple
message name e.g., "MyMessage"
. Otherwise, the value must be the
fully-qualified message name e.g., "google.library.v1.Book"
.
If the type(s) are unknown to the service (e.g. the field accepts generic
user input), use the wildcard "*"
to denote this behavior.
See AIP-202 for more details.
string type_name = 1;
clone()
public TypeReference.Builder clone()
Overrides
getDefaultInstanceForType()
public TypeReference getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTypeName()
public String getTypeName()
The name of the type that the annotated, generic field may represent.
If the type is in the same protobuf package, the value can be the simple
message name e.g., "MyMessage"
. Otherwise, the value must be the
fully-qualified message name e.g., "google.library.v1.Book"
.
If the type(s) are unknown to the service (e.g. the field accepts generic
user input), use the wildcard "*"
to denote this behavior.
See AIP-202 for more details.
string type_name = 1;
Returns |
Type |
Description |
String |
The typeName.
|
getTypeNameBytes()
public ByteString getTypeNameBytes()
The name of the type that the annotated, generic field may represent.
If the type is in the same protobuf package, the value can be the simple
message name e.g., "MyMessage"
. Otherwise, the value must be the
fully-qualified message name e.g., "google.library.v1.Book"
.
If the type(s) are unknown to the service (e.g. the field accepts generic
user input), use the wildcard "*"
to denote this behavior.
See AIP-202 for more details.
string type_name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for typeName.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TypeReference other)
public TypeReference.Builder mergeFrom(TypeReference other)
public TypeReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TypeReference.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TypeReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TypeReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TypeReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTypeName(String value)
public TypeReference.Builder setTypeName(String value)
The name of the type that the annotated, generic field may represent.
If the type is in the same protobuf package, the value can be the simple
message name e.g., "MyMessage"
. Otherwise, the value must be the
fully-qualified message name e.g., "google.library.v1.Book"
.
If the type(s) are unknown to the service (e.g. the field accepts generic
user input), use the wildcard "*"
to denote this behavior.
See AIP-202 for more details.
string type_name = 1;
Parameter |
Name |
Description |
value |
String
The typeName to set.
|
setTypeNameBytes(ByteString value)
public TypeReference.Builder setTypeNameBytes(ByteString value)
The name of the type that the annotated, generic field may represent.
If the type is in the same protobuf package, the value can be the simple
message name e.g., "MyMessage"
. Otherwise, the value must be the
fully-qualified message name e.g., "google.library.v1.Book"
.
If the type(s) are unknown to the service (e.g. the field accepts generic
user input), use the wildcard "*"
to denote this behavior.
See AIP-202 for more details.
string type_name = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for typeName to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final TypeReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides