Class UrlList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UrlList.Builder>
com.google.cloud.networksecurity.v1.UrlList.Builder
All Implemented Interfaces:
UrlListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UrlList

public static final class UrlList.Builder extends com.google.protobuf.GeneratedMessage.Builder<UrlList.Builder> implements UrlListOrBuilder
 UrlList proto helps users to set reusable, independently manageable lists
 of hosts, host patterns, URLs, URL patterns.
 
Protobuf type google.cloud.networksecurity.v1.UrlList
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UrlList.Builder>
    • clear

      public UrlList.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UrlList.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UrlList.Builder>
    • getDefaultInstanceForType

      public UrlList getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UrlList build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UrlList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UrlList.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UrlList.Builder>
    • mergeFrom

      public UrlList.Builder mergeFrom(UrlList other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UrlList.Builder>
    • mergeFrom

      public UrlList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UrlList.Builder>
      Throws:
      IOException
    • 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]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface UrlListOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface UrlListOrBuilder
      Returns:
      The bytes for name.
    • setName

      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]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      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]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public UrlList.Builder setNameBytes(com.google.protobuf.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]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasCreateTime in interface UrlListOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when the security policy was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface UrlListOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public UrlList.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the security policy was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public UrlList.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when the security policy was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public UrlList.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the security policy was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when the security policy was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when the security policy was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface UrlListOrBuilder
    • 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];
      Specified by:
      hasUpdateTime in interface UrlListOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time when the security policy was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface UrlListOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public UrlList.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the security policy was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public UrlList.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when the security policy was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public UrlList.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time when the security policy was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Time when the security policy was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time when the security policy was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface UrlListOrBuilder
    • getDescription

      public String getDescription()
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface UrlListOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface UrlListOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public UrlList.Builder setDescription(String value)
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public UrlList.Builder clearDescription()
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public UrlList.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getValuesList

      public com.google.protobuf.ProtocolStringList getValuesList()
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValuesList in interface UrlListOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValuesCount in interface UrlListOrBuilder
      Returns:
      The count of values.
    • getValues

      public String getValues(int index)
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValues in interface UrlListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • getValuesBytes

      public com.google.protobuf.ByteString getValuesBytes(int index)
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValuesBytes in interface UrlListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.
    • setValues

      public UrlList.Builder setValues(int index, String value)
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The values to set.
      Returns:
      This builder for chaining.
    • addValues

      public UrlList.Builder addValues(String value)
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

      public UrlList.Builder addAllValues(Iterable<String> values)
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

      public UrlList.Builder clearValues()
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addValuesBytes

      public UrlList.Builder addValuesBytes(com.google.protobuf.ByteString value)
       Required. FQDNs and URLs.
       
      repeated string values = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the values to add.
      Returns:
      This builder for chaining.