Class TestDefinition.DocChange.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static final class TestDefinition.DocChange.Builder extends GeneratedMessageV3.Builder<TestDefinition.DocChange.Builder> implements TestDefinition.DocChangeOrBuilder

Protobuf type google.cloud.conformance.firestore.v1.DocChange

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > com.google.protobuf.GeneratedMessageV3.Builder > TestDefinition.DocChange.Builder

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestDefinition.DocChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
valuejava.lang.Object
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object)

build()

public TestDefinition.DocChange build()
Returns
TypeDescription
TestDefinition.DocChange

buildPartial()

public TestDefinition.DocChange buildPartial()
Returns
TypeDescription
TestDefinition.DocChange

clear()

public TestDefinition.DocChange.Builder clear()
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clear()

clearDoc()

public TestDefinition.DocChange.Builder clearDoc()

.google.firestore.v1.Document doc = 2;

Returns
TypeDescription
TestDefinition.DocChange.Builder

clearField(Descriptors.FieldDescriptor field)

public TestDefinition.DocChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor)

clearKind()

public TestDefinition.DocChange.Builder clearKind()

.google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1;

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

clearNewIndex()

public TestDefinition.DocChange.Builder clearNewIndex()

int32 new_index = 4;

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

clearOldIndex()

public TestDefinition.DocChange.Builder clearOldIndex()

int32 old_index = 3;

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TestDefinition.DocChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofcom.google.protobuf.Descriptors.OneofDescriptor
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor)

clone()

public TestDefinition.DocChange.Builder clone()
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clone()

getDefaultInstanceForType()

public TestDefinition.DocChange getDefaultInstanceForType()
Returns
TypeDescription
TestDefinition.DocChange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.getDescriptorForType()

getDoc()

public Document getDoc()

.google.firestore.v1.Document doc = 2;

Returns
TypeDescription
com.google.firestore.v1.Document

The doc.

getDocBuilder()

public Document.Builder getDocBuilder()

.google.firestore.v1.Document doc = 2;

Returns
TypeDescription
com.google.firestore.v1.Document.Builder

getDocOrBuilder()

public DocumentOrBuilder getDocOrBuilder()

.google.firestore.v1.Document doc = 2;

Returns
TypeDescription
com.google.firestore.v1.DocumentOrBuilder

getKind()

public TestDefinition.DocChange.Kind getKind()

.google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1;

Returns
TypeDescription
TestDefinition.DocChange.Kind

The kind.

getKindValue()

public int getKindValue()

.google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getNewIndex()

public int getNewIndex()

int32 new_index = 4;

Returns
TypeDescription
int

The newIndex.

getOldIndex()

public int getOldIndex()

int32 old_index = 3;

Returns
TypeDescription
int

The oldIndex.

hasDoc()

public boolean hasDoc()

.google.firestore.v1.Document doc = 2;

Returns
TypeDescription
boolean

Whether the doc field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetFieldAccessorTable()

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.isInitialized()

mergeDoc(Document value)

public TestDefinition.DocChange.Builder mergeDoc(Document value)

.google.firestore.v1.Document doc = 2;

Parameter
NameDescription
valuecom.google.firestore.v1.Document
Returns
TypeDescription
TestDefinition.DocChange.Builder

mergeFrom(TestDefinition.DocChange other)

public TestDefinition.DocChange.Builder mergeFrom(TestDefinition.DocChange other)
Parameter
NameDescription
otherTestDefinition.DocChange
Returns
TypeDescription
TestDefinition.DocChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestDefinition.DocChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputcom.google.protobuf.CodedInputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
Exceptions
TypeDescription
java.io.IOException

mergeFrom(Message other)

public TestDefinition.DocChange.Builder mergeFrom(Message other)
Parameter
NameDescription
othercom.google.protobuf.Message
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.Message)

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestDefinition.DocChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldscom.google.protobuf.UnknownFieldSet
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet)

setDoc(Document value)

public TestDefinition.DocChange.Builder setDoc(Document value)

.google.firestore.v1.Document doc = 2;

Parameter
NameDescription
valuecom.google.firestore.v1.Document
Returns
TypeDescription
TestDefinition.DocChange.Builder

setDoc(Document.Builder builderForValue)

public TestDefinition.DocChange.Builder setDoc(Document.Builder builderForValue)

.google.firestore.v1.Document doc = 2;

Parameter
NameDescription
builderForValuecom.google.firestore.v1.Document.Builder
Returns
TypeDescription
TestDefinition.DocChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TestDefinition.DocChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
valuejava.lang.Object
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object)

setKind(TestDefinition.DocChange.Kind value)

public TestDefinition.DocChange.Builder setKind(TestDefinition.DocChange.Kind value)

.google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1;

Parameter
NameDescription
valueTestDefinition.DocChange.Kind

The kind to set.

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

setKindValue(int value)

public TestDefinition.DocChange.Builder setKindValue(int value)

.google.cloud.conformance.firestore.v1.DocChange.Kind kind = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for kind to set.

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

setNewIndex(int value)

public TestDefinition.DocChange.Builder setNewIndex(int value)

int32 new_index = 4;

Parameter
NameDescription
valueint

The newIndex to set.

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

setOldIndex(int value)

public TestDefinition.DocChange.Builder setOldIndex(int value)

int32 old_index = 3;

Parameter
NameDescription
valueint

The oldIndex to set.

Returns
TypeDescription
TestDefinition.DocChange.Builder

This builder for chaining.

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

public TestDefinition.DocChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
indexint
valuejava.lang.Object
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,int,java.lang.Object)

setUnknownFields(UnknownFieldSet unknownFields)

public final TestDefinition.DocChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldscom.google.protobuf.UnknownFieldSet
Returns
TypeDescription
TestDefinition.DocChange.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet)