public static final class StringSequence.Builder extends GeneratedMessage.Builder<StringSequence.Builder> implements StringSequenceOrBuilderStringSequence represents a sequence of string.
Protobuf type google.backstory.StringSequence
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StringSequence.BuilderImplements
StringSequenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllStringVals(Iterable<String> values)
public StringSequence.Builder addAllStringVals(Iterable<String> values)string sequence.
repeated string string_vals = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The stringVals to add. |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
This builder for chaining. |
addStringVals(String value)
public StringSequence.Builder addStringVals(String value)string sequence.
repeated string string_vals = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe stringVals to add. |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
This builder for chaining. |
addStringValsBytes(ByteString value)
public StringSequence.Builder addStringValsBytes(ByteString value)string sequence.
repeated string string_vals = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the stringVals to add. |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
This builder for chaining. |
build()
public StringSequence build()| Returns | |
|---|---|
| Type | Description |
StringSequence |
|
buildPartial()
public StringSequence buildPartial()| Returns | |
|---|---|
| Type | Description |
StringSequence |
|
clear()
public StringSequence.Builder clear()| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
|
clearStringVals()
public StringSequence.Builder clearStringVals()string sequence.
repeated string string_vals = 1;
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public StringSequence getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StringSequence |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getStringVals(int index)
public String getStringVals(int index)string sequence.
repeated string string_vals = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The stringVals at the given index. |
getStringValsBytes(int index)
public ByteString getStringValsBytes(int index)string sequence.
repeated string string_vals = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the stringVals at the given index. |
getStringValsCount()
public int getStringValsCount()string sequence.
repeated string string_vals = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of stringVals. |
getStringValsList()
public ProtocolStringList getStringValsList()string sequence.
repeated string string_vals = 1;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the stringVals. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StringSequence other)
public StringSequence.Builder mergeFrom(StringSequence other)| Parameter | |
|---|---|
| Name | Description |
other |
StringSequence |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StringSequence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StringSequence.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
|
setStringVals(int index, String value)
public StringSequence.Builder setStringVals(int index, String value)string sequence.
repeated string string_vals = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe stringVals to set. |
| Returns | |
|---|---|
| Type | Description |
StringSequence.Builder |
This builder for chaining. |