Class TypeReference.Builder (2.65.0)

public static final class TypeReference.Builder extends GeneratedMessage.Builder<TypeReference.Builder> implements TypeReferenceOrBuilder

A reference to a message type, for use in FieldInfo.

Protobuf type google.api.TypeReference

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public TypeReference build()
Returns
Type Description
TypeReference

buildPartial()

public TypeReference buildPartial()
Returns
Type Description
TypeReference

clear()

public TypeReference.Builder clear()
Returns
Type Description
TypeReference.Builder
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;

Returns
Type Description
TypeReference.Builder

This builder for chaining.

getDefaultInstanceForType()

public TypeReference getDefaultInstanceForType()
Returns
Type Description
TypeReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TypeReference other)

public TypeReference.Builder mergeFrom(TypeReference other)
Parameter
Name Description
other TypeReference
Returns
Type Description
TypeReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TypeReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TypeReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TypeReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TypeReference.Builder
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.

Returns
Type Description
TypeReference.Builder

This builder for chaining.

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.

Returns
Type Description
TypeReference.Builder

This builder for chaining.