Class CacheInvalidationRule.Builder

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

public static final class CacheInvalidationRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder> implements CacheInvalidationRuleOrBuilder
 
Protobuf type google.cloud.compute.v1.CacheInvalidationRule
  • 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<CacheInvalidationRule.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<CacheInvalidationRule.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<CacheInvalidationRule.Builder>
    • getDefaultInstanceForType

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

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

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

      public CacheInvalidationRule.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<CacheInvalidationRule.Builder>
    • mergeFrom

    • isInitialized

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

      public CacheInvalidationRule.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<CacheInvalidationRule.Builder>
      Throws:
      IOException
    • getCacheTagsList

      public com.google.protobuf.ProtocolStringList getCacheTagsList()
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Specified by:
      getCacheTagsList in interface CacheInvalidationRuleOrBuilder
      Returns:
      A list containing the cacheTags.
    • getCacheTagsCount

      public int getCacheTagsCount()
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Specified by:
      getCacheTagsCount in interface CacheInvalidationRuleOrBuilder
      Returns:
      The count of cacheTags.
    • getCacheTags

      public String getCacheTags(int index)
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Specified by:
      getCacheTags in interface CacheInvalidationRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The cacheTags at the given index.
    • getCacheTagsBytes

      public com.google.protobuf.ByteString getCacheTagsBytes(int index)
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Specified by:
      getCacheTagsBytes in interface CacheInvalidationRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the cacheTags at the given index.
    • setCacheTags

      public CacheInvalidationRule.Builder setCacheTags(int index, String value)
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Parameters:
      index - The index to set the value at.
      value - The cacheTags to set.
      Returns:
      This builder for chaining.
    • addCacheTags

      public CacheInvalidationRule.Builder addCacheTags(String value)
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Parameters:
      value - The cacheTags to add.
      Returns:
      This builder for chaining.
    • addAllCacheTags

      public CacheInvalidationRule.Builder addAllCacheTags(Iterable<String> values)
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Parameters:
      values - The cacheTags to add.
      Returns:
      This builder for chaining.
    • clearCacheTags

      public CacheInvalidationRule.Builder clearCacheTags()
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Returns:
      This builder for chaining.
    • addCacheTagsBytes

      public CacheInvalidationRule.Builder addCacheTagsBytes(com.google.protobuf.ByteString value)
       A list of cache tags used to identify cached objects.
      
      
       - Cache tags are specified when the response is first cached, by setting
       the `Cache-Tag` response header at the origin.
       - Multiple cache tags in the same invalidation request are treated as
       Boolean `OR` - for example, `tag1 OR tag2 OR tag3`.
       - If other fields are also specified, these are treated as Boolean `AND`
       with any tags.
      
      
       Up to 10 tags can be specified in a single invalidation request.
       
      repeated string cache_tags = 29073078;
      Parameters:
      value - The bytes of the cacheTags to add.
      Returns:
      This builder for chaining.
    • hasHost

      public boolean hasHost()
       If set, this invalidation rule will only apply to requests with a Host
       header matching host.
       
      optional string host = 3208616;
      Specified by:
      hasHost in interface CacheInvalidationRuleOrBuilder
      Returns:
      Whether the host field is set.
    • getHost

      public String getHost()
       If set, this invalidation rule will only apply to requests with a Host
       header matching host.
       
      optional string host = 3208616;
      Specified by:
      getHost in interface CacheInvalidationRuleOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       If set, this invalidation rule will only apply to requests with a Host
       header matching host.
       
      optional string host = 3208616;
      Specified by:
      getHostBytes in interface CacheInvalidationRuleOrBuilder
      Returns:
      The bytes for host.
    • setHost

      public CacheInvalidationRule.Builder setHost(String value)
       If set, this invalidation rule will only apply to requests with a Host
       header matching host.
       
      optional string host = 3208616;
      Parameters:
      value - The host to set.
      Returns:
      This builder for chaining.
    • clearHost

      public CacheInvalidationRule.Builder clearHost()
       If set, this invalidation rule will only apply to requests with a Host
       header matching host.
       
      optional string host = 3208616;
      Returns:
      This builder for chaining.
    • setHostBytes

      public CacheInvalidationRule.Builder setHostBytes(com.google.protobuf.ByteString value)
       If set, this invalidation rule will only apply to requests with a Host
       header matching host.
       
      optional string host = 3208616;
      Parameters:
      value - The bytes for host to set.
      Returns:
      This builder for chaining.
    • hasPath

      public boolean hasPath()
      optional string path = 3433509;
      Specified by:
      hasPath in interface CacheInvalidationRuleOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
      optional string path = 3433509;
      Specified by:
      getPath in interface CacheInvalidationRuleOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
      optional string path = 3433509;
      Specified by:
      getPathBytes in interface CacheInvalidationRuleOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public CacheInvalidationRule.Builder setPath(String value)
      optional string path = 3433509;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public CacheInvalidationRule.Builder clearPath()
      optional string path = 3433509;
      Returns:
      This builder for chaining.
    • setPathBytes

      public CacheInvalidationRule.Builder setPathBytes(com.google.protobuf.ByteString value)
      optional string path = 3433509;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.