public static final class BertLmProto.Mask.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder> implements BertLmProto.MaskOrBuilder
bert.Mask
Modifier and Type | Method and Description |
---|---|
BertLmProto.Mask.Builder |
addAllCandidates(Iterable<String> values)
repeated string candidates = 3; |
BertLmProto.Mask.Builder |
addCandidates(String value)
repeated string candidates = 3; |
BertLmProto.Mask.Builder |
addCandidatesBytes(com.google.protobuf.ByteString value)
repeated string candidates = 3; |
BertLmProto.Mask.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BertLmProto.Mask |
build() |
BertLmProto.Mask |
buildPartial() |
BertLmProto.Mask.Builder |
clear() |
BertLmProto.Mask.Builder |
clearCandidates()
repeated string candidates = 3; |
BertLmProto.Mask.Builder |
clearEnd()
uint32 end = 2; |
BertLmProto.Mask.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BertLmProto.Mask.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BertLmProto.Mask.Builder |
clearStart()
uint32 start = 1; |
BertLmProto.Mask.Builder |
clone() |
String |
getCandidates(int index)
repeated string candidates = 3; |
com.google.protobuf.ByteString |
getCandidatesBytes(int index)
repeated string candidates = 3; |
int |
getCandidatesCount()
repeated string candidates = 3; |
com.google.protobuf.ProtocolStringList |
getCandidatesList()
repeated string candidates = 3; |
BertLmProto.Mask |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getEnd()
uint32 end = 2; |
int |
getStart()
uint32 start = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BertLmProto.Mask.Builder |
mergeFrom(BertLmProto.Mask other) |
BertLmProto.Mask.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BertLmProto.Mask.Builder |
mergeFrom(com.google.protobuf.Message other) |
BertLmProto.Mask.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BertLmProto.Mask.Builder |
setCandidates(int index,
String value)
repeated string candidates = 3; |
BertLmProto.Mask.Builder |
setEnd(int value)
uint32 end = 2; |
BertLmProto.Mask.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BertLmProto.Mask.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BertLmProto.Mask.Builder |
setStart(int value)
uint32 start = 1; |
BertLmProto.Mask.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BertLmProto.Mask build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BertLmProto.Mask buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BertLmProto.Mask.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder mergeFrom(BertLmProto.Mask other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public BertLmProto.Mask.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BertLmProto.Mask.Builder>
IOException
public int getStart()
uint32 start = 1;
getStart
in interface BertLmProto.MaskOrBuilder
public BertLmProto.Mask.Builder setStart(int value)
uint32 start = 1;
value
- The start to set.public BertLmProto.Mask.Builder clearStart()
uint32 start = 1;
public int getEnd()
uint32 end = 2;
getEnd
in interface BertLmProto.MaskOrBuilder
public BertLmProto.Mask.Builder setEnd(int value)
uint32 end = 2;
value
- The end to set.public BertLmProto.Mask.Builder clearEnd()
uint32 end = 2;
public com.google.protobuf.ProtocolStringList getCandidatesList()
repeated string candidates = 3;
getCandidatesList
in interface BertLmProto.MaskOrBuilder
public int getCandidatesCount()
repeated string candidates = 3;
getCandidatesCount
in interface BertLmProto.MaskOrBuilder
public String getCandidates(int index)
repeated string candidates = 3;
getCandidates
in interface BertLmProto.MaskOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getCandidatesBytes(int index)
repeated string candidates = 3;
getCandidatesBytes
in interface BertLmProto.MaskOrBuilder
index
- The index of the value to return.public BertLmProto.Mask.Builder setCandidates(int index, String value)
repeated string candidates = 3;
index
- The index to set the value at.value
- The candidates to set.public BertLmProto.Mask.Builder addCandidates(String value)
repeated string candidates = 3;
value
- The candidates to add.public BertLmProto.Mask.Builder addAllCandidates(Iterable<String> values)
repeated string candidates = 3;
values
- The candidates to add.public BertLmProto.Mask.Builder clearCandidates()
repeated string candidates = 3;
public BertLmProto.Mask.Builder addCandidatesBytes(com.google.protobuf.ByteString value)
repeated string candidates = 3;
value
- The bytes of the candidates to add.public final BertLmProto.Mask.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>
public final BertLmProto.Mask.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BertLmProto.Mask.Builder>