Class BackendBucket.Builder

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

public static final class BackendBucket.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendBucket.Builder> implements BackendBucketOrBuilder
 Represents a Cloud Storage Bucket resource.

 This Cloud Storage bucket resource is referenced by a URL map of a load
 balancer. For more information, readBackend Buckets.
 
Protobuf type google.cloud.compute.v1.BackendBucket
  • 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<BackendBucket.Builder>
    • clear

      public BackendBucket.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<BackendBucket.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<BackendBucket.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BackendBucket.Builder mergeFrom(BackendBucket other)
    • isInitialized

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

      public BackendBucket.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<BackendBucket.Builder>
      Throws:
      IOException
    • hasBucketName

      public boolean hasBucketName()
       Cloud Storage bucket name.
       
      optional string bucket_name = 283610048;
      Specified by:
      hasBucketName in interface BackendBucketOrBuilder
      Returns:
      Whether the bucketName field is set.
    • getBucketName

      public String getBucketName()
       Cloud Storage bucket name.
       
      optional string bucket_name = 283610048;
      Specified by:
      getBucketName in interface BackendBucketOrBuilder
      Returns:
      The bucketName.
    • getBucketNameBytes

      public com.google.protobuf.ByteString getBucketNameBytes()
       Cloud Storage bucket name.
       
      optional string bucket_name = 283610048;
      Specified by:
      getBucketNameBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for bucketName.
    • setBucketName

      public BackendBucket.Builder setBucketName(String value)
       Cloud Storage bucket name.
       
      optional string bucket_name = 283610048;
      Parameters:
      value - The bucketName to set.
      Returns:
      This builder for chaining.
    • clearBucketName

      public BackendBucket.Builder clearBucketName()
       Cloud Storage bucket name.
       
      optional string bucket_name = 283610048;
      Returns:
      This builder for chaining.
    • setBucketNameBytes

      public BackendBucket.Builder setBucketNameBytes(com.google.protobuf.ByteString value)
       Cloud Storage bucket name.
       
      optional string bucket_name = 283610048;
      Parameters:
      value - The bytes for bucketName to set.
      Returns:
      This builder for chaining.
    • hasCdnPolicy

      public boolean hasCdnPolicy()
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
      Specified by:
      hasCdnPolicy in interface BackendBucketOrBuilder
      Returns:
      Whether the cdnPolicy field is set.
    • getCdnPolicy

      public BackendBucketCdnPolicy getCdnPolicy()
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
      Specified by:
      getCdnPolicy in interface BackendBucketOrBuilder
      Returns:
      The cdnPolicy.
    • setCdnPolicy

      public BackendBucket.Builder setCdnPolicy(BackendBucketCdnPolicy value)
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
    • setCdnPolicy

      public BackendBucket.Builder setCdnPolicy(BackendBucketCdnPolicy.Builder builderForValue)
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
    • mergeCdnPolicy

      public BackendBucket.Builder mergeCdnPolicy(BackendBucketCdnPolicy value)
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
    • clearCdnPolicy

      public BackendBucket.Builder clearCdnPolicy()
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
    • getCdnPolicyBuilder

      public BackendBucketCdnPolicy.Builder getCdnPolicyBuilder()
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
    • getCdnPolicyOrBuilder

      public BackendBucketCdnPolicyOrBuilder getCdnPolicyOrBuilder()
       Cloud CDN configuration for this BackendBucket.
       
      optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
      Specified by:
      getCdnPolicyOrBuilder in interface BackendBucketOrBuilder
    • hasCompressionMode

      public boolean hasCompressionMode()
       Compress text responses using Brotli or gzip compression, based on
       the client's Accept-Encoding header.
       Check the CompressionMode enum for the list of possible values.
       
      optional string compression_mode = 95520988;
      Specified by:
      hasCompressionMode in interface BackendBucketOrBuilder
      Returns:
      Whether the compressionMode field is set.
    • getCompressionMode

      public String getCompressionMode()
       Compress text responses using Brotli or gzip compression, based on
       the client's Accept-Encoding header.
       Check the CompressionMode enum for the list of possible values.
       
      optional string compression_mode = 95520988;
      Specified by:
      getCompressionMode in interface BackendBucketOrBuilder
      Returns:
      The compressionMode.
    • getCompressionModeBytes

      public com.google.protobuf.ByteString getCompressionModeBytes()
       Compress text responses using Brotli or gzip compression, based on
       the client's Accept-Encoding header.
       Check the CompressionMode enum for the list of possible values.
       
      optional string compression_mode = 95520988;
      Specified by:
      getCompressionModeBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for compressionMode.
    • setCompressionMode

      public BackendBucket.Builder setCompressionMode(String value)
       Compress text responses using Brotli or gzip compression, based on
       the client's Accept-Encoding header.
       Check the CompressionMode enum for the list of possible values.
       
      optional string compression_mode = 95520988;
      Parameters:
      value - The compressionMode to set.
      Returns:
      This builder for chaining.
    • clearCompressionMode

      public BackendBucket.Builder clearCompressionMode()
       Compress text responses using Brotli or gzip compression, based on
       the client's Accept-Encoding header.
       Check the CompressionMode enum for the list of possible values.
       
      optional string compression_mode = 95520988;
      Returns:
      This builder for chaining.
    • setCompressionModeBytes

      public BackendBucket.Builder setCompressionModeBytes(com.google.protobuf.ByteString value)
       Compress text responses using Brotli or gzip compression, based on
       the client's Accept-Encoding header.
       Check the CompressionMode enum for the list of possible values.
       
      optional string compression_mode = 95520988;
      Parameters:
      value - The bytes for compressionMode to set.
      Returns:
      This builder for chaining.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface BackendBucketOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface BackendBucketOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public BackendBucket.Builder setCreationTimestamp(String value)
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The creationTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreationTimestamp

      public BackendBucket.Builder clearCreationTimestamp()
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public BackendBucket.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The bytes for creationTimestamp to set.
      Returns:
      This builder for chaining.
    • getCustomResponseHeadersList

      public com.google.protobuf.ProtocolStringList getCustomResponseHeadersList()
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Specified by:
      getCustomResponseHeadersList in interface BackendBucketOrBuilder
      Returns:
      A list containing the customResponseHeaders.
    • getCustomResponseHeadersCount

      public int getCustomResponseHeadersCount()
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Specified by:
      getCustomResponseHeadersCount in interface BackendBucketOrBuilder
      Returns:
      The count of customResponseHeaders.
    • getCustomResponseHeaders

      public String getCustomResponseHeaders(int index)
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Specified by:
      getCustomResponseHeaders in interface BackendBucketOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The customResponseHeaders at the given index.
    • getCustomResponseHeadersBytes

      public com.google.protobuf.ByteString getCustomResponseHeadersBytes(int index)
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Specified by:
      getCustomResponseHeadersBytes in interface BackendBucketOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the customResponseHeaders at the given index.
    • setCustomResponseHeaders

      public BackendBucket.Builder setCustomResponseHeaders(int index, String value)
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Parameters:
      index - The index to set the value at.
      value - The customResponseHeaders to set.
      Returns:
      This builder for chaining.
    • addCustomResponseHeaders

      public BackendBucket.Builder addCustomResponseHeaders(String value)
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Parameters:
      value - The customResponseHeaders to add.
      Returns:
      This builder for chaining.
    • addAllCustomResponseHeaders

      public BackendBucket.Builder addAllCustomResponseHeaders(Iterable<String> values)
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Parameters:
      values - The customResponseHeaders to add.
      Returns:
      This builder for chaining.
    • clearCustomResponseHeaders

      public BackendBucket.Builder clearCustomResponseHeaders()
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Returns:
      This builder for chaining.
    • addCustomResponseHeadersBytes

      public BackendBucket.Builder addCustomResponseHeadersBytes(com.google.protobuf.ByteString value)
       Headers that the Application Load Balancer should add to proxied responses.
       
      repeated string custom_response_headers = 387539094;
      Parameters:
      value - The bytes of the customResponseHeaders to add.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface BackendBucketOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface BackendBucketOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public BackendBucket.Builder setDescription(String value)
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public BackendBucket.Builder clearDescription()
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public BackendBucket.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional textual description of the resource; provided by the client
       when the resource is created.
       
      optional string description = 422937596;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasEdgeSecurityPolicy

      public boolean hasEdgeSecurityPolicy()
       [Output Only] The resource URL for the edge security policy associated with
       this backend bucket.
       
      optional string edge_security_policy = 41036943;
      Specified by:
      hasEdgeSecurityPolicy in interface BackendBucketOrBuilder
      Returns:
      Whether the edgeSecurityPolicy field is set.
    • getEdgeSecurityPolicy

      public String getEdgeSecurityPolicy()
       [Output Only] The resource URL for the edge security policy associated with
       this backend bucket.
       
      optional string edge_security_policy = 41036943;
      Specified by:
      getEdgeSecurityPolicy in interface BackendBucketOrBuilder
      Returns:
      The edgeSecurityPolicy.
    • getEdgeSecurityPolicyBytes

      public com.google.protobuf.ByteString getEdgeSecurityPolicyBytes()
       [Output Only] The resource URL for the edge security policy associated with
       this backend bucket.
       
      optional string edge_security_policy = 41036943;
      Specified by:
      getEdgeSecurityPolicyBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for edgeSecurityPolicy.
    • setEdgeSecurityPolicy

      public BackendBucket.Builder setEdgeSecurityPolicy(String value)
       [Output Only] The resource URL for the edge security policy associated with
       this backend bucket.
       
      optional string edge_security_policy = 41036943;
      Parameters:
      value - The edgeSecurityPolicy to set.
      Returns:
      This builder for chaining.
    • clearEdgeSecurityPolicy

      public BackendBucket.Builder clearEdgeSecurityPolicy()
       [Output Only] The resource URL for the edge security policy associated with
       this backend bucket.
       
      optional string edge_security_policy = 41036943;
      Returns:
      This builder for chaining.
    • setEdgeSecurityPolicyBytes

      public BackendBucket.Builder setEdgeSecurityPolicyBytes(com.google.protobuf.ByteString value)
       [Output Only] The resource URL for the edge security policy associated with
       this backend bucket.
       
      optional string edge_security_policy = 41036943;
      Parameters:
      value - The bytes for edgeSecurityPolicy to set.
      Returns:
      This builder for chaining.
    • hasEnableCdn

      public boolean hasEnableCdn()
       If true, enable Cloud CDN for this BackendBucket.
       
      optional bool enable_cdn = 282942321;
      Specified by:
      hasEnableCdn in interface BackendBucketOrBuilder
      Returns:
      Whether the enableCdn field is set.
    • getEnableCdn

      public boolean getEnableCdn()
       If true, enable Cloud CDN for this BackendBucket.
       
      optional bool enable_cdn = 282942321;
      Specified by:
      getEnableCdn in interface BackendBucketOrBuilder
      Returns:
      The enableCdn.
    • setEnableCdn

      public BackendBucket.Builder setEnableCdn(boolean value)
       If true, enable Cloud CDN for this BackendBucket.
       
      optional bool enable_cdn = 282942321;
      Parameters:
      value - The enableCdn to set.
      Returns:
      This builder for chaining.
    • clearEnableCdn

      public BackendBucket.Builder clearEnableCdn()
       If true, enable Cloud CDN for this BackendBucket.
       
      optional bool enable_cdn = 282942321;
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface BackendBucketOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface BackendBucketOrBuilder
      Returns:
      The id.
    • setId

      public BackendBucket.Builder setId(long value)
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public BackendBucket.Builder clearId()
       [Output Only] Unique identifier for the resource; defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Output only. Type of the resource.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface BackendBucketOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. Type of the resource.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface BackendBucketOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. Type of the resource.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public BackendBucket.Builder setKind(String value)
       Output only. Type of the resource.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public BackendBucket.Builder clearKind()
       Output only. Type of the resource.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public BackendBucket.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. Type of the resource.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasLoadBalancingScheme

      public boolean hasLoadBalancingScheme()
       The value can only be INTERNAL_MANAGED for cross-region internal layer 7
       load balancer.
      
       If loadBalancingScheme is not specified, the backend bucket can be used by
       classic global external load balancers, or global application external load
       balancers, or both.
       Check the LoadBalancingScheme enum for the list of possible values.
       
      optional string load_balancing_scheme = 363890244;
      Specified by:
      hasLoadBalancingScheme in interface BackendBucketOrBuilder
      Returns:
      Whether the loadBalancingScheme field is set.
    • getLoadBalancingScheme

      public String getLoadBalancingScheme()
       The value can only be INTERNAL_MANAGED for cross-region internal layer 7
       load balancer.
      
       If loadBalancingScheme is not specified, the backend bucket can be used by
       classic global external load balancers, or global application external load
       balancers, or both.
       Check the LoadBalancingScheme enum for the list of possible values.
       
      optional string load_balancing_scheme = 363890244;
      Specified by:
      getLoadBalancingScheme in interface BackendBucketOrBuilder
      Returns:
      The loadBalancingScheme.
    • getLoadBalancingSchemeBytes

      public com.google.protobuf.ByteString getLoadBalancingSchemeBytes()
       The value can only be INTERNAL_MANAGED for cross-region internal layer 7
       load balancer.
      
       If loadBalancingScheme is not specified, the backend bucket can be used by
       classic global external load balancers, or global application external load
       balancers, or both.
       Check the LoadBalancingScheme enum for the list of possible values.
       
      optional string load_balancing_scheme = 363890244;
      Specified by:
      getLoadBalancingSchemeBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for loadBalancingScheme.
    • setLoadBalancingScheme

      public BackendBucket.Builder setLoadBalancingScheme(String value)
       The value can only be INTERNAL_MANAGED for cross-region internal layer 7
       load balancer.
      
       If loadBalancingScheme is not specified, the backend bucket can be used by
       classic global external load balancers, or global application external load
       balancers, or both.
       Check the LoadBalancingScheme enum for the list of possible values.
       
      optional string load_balancing_scheme = 363890244;
      Parameters:
      value - The loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancingScheme

      public BackendBucket.Builder clearLoadBalancingScheme()
       The value can only be INTERNAL_MANAGED for cross-region internal layer 7
       load balancer.
      
       If loadBalancingScheme is not specified, the backend bucket can be used by
       classic global external load balancers, or global application external load
       balancers, or both.
       Check the LoadBalancingScheme enum for the list of possible values.
       
      optional string load_balancing_scheme = 363890244;
      Returns:
      This builder for chaining.
    • setLoadBalancingSchemeBytes

      public BackendBucket.Builder setLoadBalancingSchemeBytes(com.google.protobuf.ByteString value)
       The value can only be INTERNAL_MANAGED for cross-region internal layer 7
       load balancer.
      
       If loadBalancingScheme is not specified, the backend bucket can be used by
       classic global external load balancers, or global application external load
       balancers, or both.
       Check the LoadBalancingScheme enum for the list of possible values.
       
      optional string load_balancing_scheme = 363890244;
      Parameters:
      value - The bytes for loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface BackendBucketOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface BackendBucketOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BackendBucket.Builder setName(String value)
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BackendBucket.Builder clearName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BackendBucket.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasParams

      public boolean hasParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
      Specified by:
      hasParams in interface BackendBucketOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public BackendBucketParams getParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
      Specified by:
      getParams in interface BackendBucketOrBuilder
      Returns:
      The params.
    • setParams

      public BackendBucket.Builder setParams(BackendBucketParams value)
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
    • setParams

      public BackendBucket.Builder setParams(BackendBucketParams.Builder builderForValue)
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
    • mergeParams

      public BackendBucket.Builder mergeParams(BackendBucketParams value)
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
    • clearParams

      public BackendBucket.Builder clearParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
    • getParamsBuilder

      public BackendBucketParams.Builder getParamsBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
    • getParamsOrBuilder

      public BackendBucketParamsOrBuilder getParamsOrBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.BackendBucketParams params = 78313862;
      Specified by:
      getParamsOrBuilder in interface BackendBucketOrBuilder
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of the region where the regional backend bucket
       resides. This field is not applicable to global backend buckets.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface BackendBucketOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of the region where the regional backend bucket
       resides. This field is not applicable to global backend buckets.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface BackendBucketOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of the region where the regional backend bucket
       resides. This field is not applicable to global backend buckets.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public BackendBucket.Builder setRegion(String value)
       Output only. [Output Only] URL of the region where the regional backend bucket
       resides. This field is not applicable to global backend buckets.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public BackendBucket.Builder clearRegion()
       Output only. [Output Only] URL of the region where the regional backend bucket
       resides. This field is not applicable to global backend buckets.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public BackendBucket.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] URL of the region where the regional backend bucket
       resides. This field is not applicable to global backend buckets.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string region = 138946292;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • hasSelfLink

      public boolean hasSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface BackendBucketOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface BackendBucketOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface BackendBucketOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public BackendBucket.Builder setSelfLink(String value)
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public BackendBucket.Builder clearSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public BackendBucket.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • getUsedByList

      public List<BackendBucketUsedBy> getUsedByList()
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
      Specified by:
      getUsedByList in interface BackendBucketOrBuilder
    • getUsedByCount

      public int getUsedByCount()
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
      Specified by:
      getUsedByCount in interface BackendBucketOrBuilder
    • getUsedBy

      public BackendBucketUsedBy getUsedBy(int index)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
      Specified by:
      getUsedBy in interface BackendBucketOrBuilder
    • setUsedBy

      public BackendBucket.Builder setUsedBy(int index, BackendBucketUsedBy value)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • setUsedBy

      public BackendBucket.Builder setUsedBy(int index, BackendBucketUsedBy.Builder builderForValue)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • addUsedBy

      public BackendBucket.Builder addUsedBy(BackendBucketUsedBy value)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • addUsedBy

      public BackendBucket.Builder addUsedBy(int index, BackendBucketUsedBy value)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • addUsedBy

      public BackendBucket.Builder addUsedBy(BackendBucketUsedBy.Builder builderForValue)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • addUsedBy

      public BackendBucket.Builder addUsedBy(int index, BackendBucketUsedBy.Builder builderForValue)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • addAllUsedBy

      public BackendBucket.Builder addAllUsedBy(Iterable<? extends BackendBucketUsedBy> values)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • clearUsedBy

      public BackendBucket.Builder clearUsedBy()
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • removeUsedBy

      public BackendBucket.Builder removeUsedBy(int index)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • getUsedByBuilder

      public BackendBucketUsedBy.Builder getUsedByBuilder(int index)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • getUsedByOrBuilder

      public BackendBucketUsedByOrBuilder getUsedByOrBuilder(int index)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
      Specified by:
      getUsedByOrBuilder in interface BackendBucketOrBuilder
    • getUsedByOrBuilderList

      public List<? extends BackendBucketUsedByOrBuilder> getUsedByOrBuilderList()
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
      Specified by:
      getUsedByOrBuilderList in interface BackendBucketOrBuilder
    • addUsedByBuilder

      public BackendBucketUsedBy.Builder addUsedByBuilder()
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • addUsedByBuilder

      public BackendBucketUsedBy.Builder addUsedByBuilder(int index)
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;
    • getUsedByBuilderList

      public List<BackendBucketUsedBy.Builder> getUsedByBuilderList()
       Output only. [Output Only] List of resources referencing that backend bucket.
       
      repeated .google.cloud.compute.v1.BackendBucketUsedBy used_by = 389320729;