public static final class StringList.Builder extends GeneratedMessage.Builder<StringList.Builder> implements StringListOrBuilderA list of strings for the parameter value.
Protobuf type google.cloud.cloudsecuritycompliance.v1.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
addAllValues(Iterable<String> values)
public StringList.Builder addAllValues(Iterable<String> values)Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The values to add. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |
addValues(String value)
public StringList.Builder addValues(String value)Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe values to add. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |
addValuesBytes(ByteString value)
public StringList.Builder addValuesBytes(ByteString value)Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the values 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 |
|
clearValues()
public StringList.Builder clearValues()Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| 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 |
|
getValues(int index)
public String getValues(int index)Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The values at the given index. |
getValuesBytes(int index)
public ByteString getValuesBytes(int index)Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the values at the given index. |
getValuesCount()
public int getValuesCount()Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of values. |
getValuesList()
public ProtocolStringList getValuesList()Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the values. |
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 |
|
setValues(int index, String value)
public StringList.Builder setValues(int index, String value)Required. The strings in the list.
repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe values to set. |
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
This builder for chaining. |