public static final class UrlList.Builder extends GeneratedMessage.Builder<UrlList.Builder> implements UrlListOrBuilderUrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns.
Protobuf type google.cloud.networksecurity.v1.UrlList
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UrlList.BuilderImplements
UrlListOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllValues(Iterable<String> values)
public UrlList.Builder addAllValues(Iterable<String> values)Required. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The values to add. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
addValues(String value)
public UrlList.Builder addValues(String value)Required. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe values to add. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
addValuesBytes(ByteString value)
public UrlList.Builder addValuesBytes(ByteString value)Required. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the values to add. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
build()
public UrlList build()| Returns | |
|---|---|
| Type | Description |
UrlList |
|
buildPartial()
public UrlList buildPartial()| Returns | |
|---|---|
| Type | Description |
UrlList |
|
clear()
public UrlList.Builder clear()| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
clearCreateTime()
public UrlList.Builder clearCreateTime()Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
clearDescription()
public UrlList.Builder clearDescription()Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
clearName()
public UrlList.Builder clearName()Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
clearUpdateTime()
public UrlList.Builder clearUpdateTime()Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
clearValues()
public UrlList.Builder clearValues()Required. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
getCreateTime()
public Timestamp getCreateTime()Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public UrlList getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UrlList |
|
getDescription()
public String getDescription()Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getValues(int index)
public String getValues(int index)Required. FQDNs and URLs.
repeated string values = 5 [(.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. FQDNs and URLs.
repeated string values = 5 [(.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. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of values. |
getValuesList()
public ProtocolStringList getValuesList()Required. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the values. |
hasCreateTime()
public boolean hasCreateTime()Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public UrlList.Builder mergeCreateTime(Timestamp value)Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
mergeFrom(UrlList other)
public UrlList.Builder mergeFrom(UrlList other)| Parameter | |
|---|---|
| Name | Description |
other |
UrlList |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UrlList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UrlList.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
mergeUpdateTime(Timestamp value)
public UrlList.Builder mergeUpdateTime(Timestamp value)Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
setCreateTime(Timestamp value)
public UrlList.Builder setCreateTime(Timestamp value)Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public UrlList.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Time when the security policy was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
setDescription(String value)
public UrlList.Builder setDescription(String value)Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public UrlList.Builder setDescriptionBytes(ByteString value)Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
setName(String value)
public UrlList.Builder setName(String value)Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public UrlList.Builder setNameBytes(ByteString value)Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public UrlList.Builder setUpdateTime(Timestamp value)Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public UrlList.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. Time when the security policy was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
|
setValues(int index, String value)
public UrlList.Builder setValues(int index, String value)Required. FQDNs and URLs.
repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe values to set. |
| Returns | |
|---|---|
| Type | Description |
UrlList.Builder |
This builder for chaining. |