Class Reply.Reference.Builder (0.29.0)

public static final class Reply.Reference.Builder extends GeneratedMessageV3.Builder<Reply.Reference.Builder> implements Reply.ReferenceOrBuilder

Defines reference in reply.

Protobuf type google.cloud.discoveryengine.v1alpha.Reply.Reference

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Reply.Reference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Reply.Reference.Builder
Overrides

build()

public Reply.Reference build()
Returns
TypeDescription
Reply.Reference

buildPartial()

public Reply.Reference buildPartial()
Returns
TypeDescription
Reply.Reference

clear()

public Reply.Reference.Builder clear()
Returns
TypeDescription
Reply.Reference.Builder
Overrides

clearAnchorText()

public Reply.Reference.Builder clearAnchorText()

Anchor text.

string anchor_text = 2;

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

clearEnd()

public Reply.Reference.Builder clearEnd()

Anchor text end index.

int32 end = 4;

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Reply.Reference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Reply.Reference.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Reply.Reference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Reply.Reference.Builder
Overrides

clearStart()

public Reply.Reference.Builder clearStart()

Anchor text start index.

int32 start = 3;

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

clearUri()

public Reply.Reference.Builder clearUri()

URI link reference.

string uri = 1;

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

clone()

public Reply.Reference.Builder clone()
Returns
TypeDescription
Reply.Reference.Builder
Overrides

getAnchorText()

public String getAnchorText()

Anchor text.

string anchor_text = 2;

Returns
TypeDescription
String

The anchorText.

getAnchorTextBytes()

public ByteString getAnchorTextBytes()

Anchor text.

string anchor_text = 2;

Returns
TypeDescription
ByteString

The bytes for anchorText.

getDefaultInstanceForType()

public Reply.Reference getDefaultInstanceForType()
Returns
TypeDescription
Reply.Reference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnd()

public int getEnd()

Anchor text end index.

int32 end = 4;

Returns
TypeDescription
int

The end.

getStart()

public int getStart()

Anchor text start index.

int32 start = 3;

Returns
TypeDescription
int

The start.

getUri()

public String getUri()

URI link reference.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI link reference.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Reply.Reference other)

public Reply.Reference.Builder mergeFrom(Reply.Reference other)
Parameter
NameDescription
otherReply.Reference
Returns
TypeDescription
Reply.Reference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Reply.Reference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reply.Reference.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Reply.Reference.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Reply.Reference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Reply.Reference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Reply.Reference.Builder
Overrides

setAnchorText(String value)

public Reply.Reference.Builder setAnchorText(String value)

Anchor text.

string anchor_text = 2;

Parameter
NameDescription
valueString

The anchorText to set.

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

setAnchorTextBytes(ByteString value)

public Reply.Reference.Builder setAnchorTextBytes(ByteString value)

Anchor text.

string anchor_text = 2;

Parameter
NameDescription
valueByteString

The bytes for anchorText to set.

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

setEnd(int value)

public Reply.Reference.Builder setEnd(int value)

Anchor text end index.

int32 end = 4;

Parameter
NameDescription
valueint

The end to set.

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Reply.Reference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Reply.Reference.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Reply.Reference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Reply.Reference.Builder
Overrides

setStart(int value)

public Reply.Reference.Builder setStart(int value)

Anchor text start index.

int32 start = 3;

Parameter
NameDescription
valueint

The start to set.

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Reply.Reference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Reply.Reference.Builder
Overrides

setUri(String value)

public Reply.Reference.Builder setUri(String value)

URI link reference.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.

setUriBytes(ByteString value)

public Reply.Reference.Builder setUriBytes(ByteString value)

URI link reference.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
Reply.Reference.Builder

This builder for chaining.