public static final class StringList.Builder extends GeneratedMessage.Builder<StringList.Builder> implements StringListOrBuilderStringList is a wrapper for a repeated list of strings.
Protobuf type google.cloud.geminidataanalytics.v1beta.StringList
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StringList.BuilderImplements
StringListOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllList(Iterable<String> values)
public StringList.Builder addAllList(Iterable<String> values)The list of strings.
repeated string list = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The list to add. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |
addList(String value)
public StringList.Builder addList(String value)The list of strings.
repeated string list = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe list to add. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |
addListBytes(ByteString value)
public StringList.Builder addListBytes(ByteString value)The list of strings.
repeated string list = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the list to add. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |
build()
public StringList build()| Returns | |
|---|---|
| Type | Description |
StringList |
|
buildPartial()
public StringList buildPartial()| Returns | |
|---|---|
| Type | Description |
StringList |
|
clear()
public StringList.Builder clear()| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
|
clearList()
public StringList.Builder clearList()The list of strings.
repeated string list = 1;
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public StringList getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StringList |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getList(int index)
public String getList(int index)The list of strings.
repeated string list = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The list at the given index. |
getListBytes(int index)
public ByteString getListBytes(int index)The list of strings.
repeated string list = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the list at the given index. |
getListCount()
public int getListCount()The list of strings.
repeated string list = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of list. |
getListList()
public ProtocolStringList getListList()The list of strings.
repeated string list = 1;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the list. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StringList other)
public StringList.Builder mergeFrom(StringList other)| Parameter | |
|---|---|
| Name | Description |
other |
StringList |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StringList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StringList.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
|
setList(int index, String value)
public StringList.Builder setList(int index, String value)The list of strings.
repeated string list = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe list to set. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |