Interface Bucket.CorsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Bucket.Cors, Bucket.Cors.Builder
Enclosing class:
Bucket

public static interface Bucket.CorsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getOriginList

      List<String> getOriginList()
       Optional. The list of Origins eligible to receive CORS response headers.
       See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
       Note: "*" is permitted in the list of origins, and means "any Origin".
       
      repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the origin.
    • getOriginCount

      int getOriginCount()
       Optional. The list of Origins eligible to receive CORS response headers.
       See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
       Note: "*" is permitted in the list of origins, and means "any Origin".
       
      repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of origin.
    • getOrigin

      String getOrigin(int index)
       Optional. The list of Origins eligible to receive CORS response headers.
       See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
       Note: "*" is permitted in the list of origins, and means "any Origin".
       
      repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The origin at the given index.
    • getOriginBytes

      com.google.protobuf.ByteString getOriginBytes(int index)
       Optional. The list of Origins eligible to receive CORS response headers.
       See [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
       Note: "*" is permitted in the list of origins, and means "any Origin".
       
      repeated string origin = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the origin at the given index.
    • getMethodList

      List<String> getMethodList()
       Optional. The list of HTTP methods on which to include CORS response
       headers,
       (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
       methods, and means "any method".
       
      repeated string method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the method.
    • getMethodCount

      int getMethodCount()
       Optional. The list of HTTP methods on which to include CORS response
       headers,
       (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
       methods, and means "any method".
       
      repeated string method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of method.
    • getMethod

      String getMethod(int index)
       Optional. The list of HTTP methods on which to include CORS response
       headers,
       (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
       methods, and means "any method".
       
      repeated string method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The method at the given index.
    • getMethodBytes

      com.google.protobuf.ByteString getMethodBytes(int index)
       Optional. The list of HTTP methods on which to include CORS response
       headers,
       (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
       methods, and means "any method".
       
      repeated string method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the method at the given index.
    • getResponseHeaderList

      List<String> getResponseHeaderList()
       Optional. The list of HTTP headers other than the
       [https://www.w3.org/TR/cors/#simple-response-header][simple response
       headers] to give permission for the user-agent to share across domains.
       
      repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the responseHeader.
    • getResponseHeaderCount

      int getResponseHeaderCount()
       Optional. The list of HTTP headers other than the
       [https://www.w3.org/TR/cors/#simple-response-header][simple response
       headers] to give permission for the user-agent to share across domains.
       
      repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of responseHeader.
    • getResponseHeader

      String getResponseHeader(int index)
       Optional. The list of HTTP headers other than the
       [https://www.w3.org/TR/cors/#simple-response-header][simple response
       headers] to give permission for the user-agent to share across domains.
       
      repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The responseHeader at the given index.
    • getResponseHeaderBytes

      com.google.protobuf.ByteString getResponseHeaderBytes(int index)
       Optional. The list of HTTP headers other than the
       [https://www.w3.org/TR/cors/#simple-response-header][simple response
       headers] to give permission for the user-agent to share across domains.
       
      repeated string response_header = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the responseHeader at the given index.
    • getMaxAgeSeconds

      int getMaxAgeSeconds()
       Optional. The value, in seconds, to return in the
       [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
       header] used in preflight responses.
       
      int32 max_age_seconds = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The maxAgeSeconds.