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 Summary

    Modifier and Type
    Method
    Description
    int
    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.
    getMethod(int index)
    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".
    com.google.protobuf.ByteString
    getMethodBytes(int index)
    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".
    int
    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".
    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".
    getOrigin(int index)
    The list of Origins eligible to receive CORS response headers.
    com.google.protobuf.ByteString
    getOriginBytes(int index)
    The list of Origins eligible to receive CORS response headers.
    int
    The list of Origins eligible to receive CORS response headers.
    The list of Origins eligible to receive CORS response headers.
    getResponseHeader(int index)
    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.
    com.google.protobuf.ByteString
    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.
    int
    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.
    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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getOriginList

      List<String> getOriginList()
       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;
      Returns:
      A list containing the origin.
    • getOriginCount

      int getOriginCount()
       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;
      Returns:
      The count of origin.
    • getOrigin

      String getOrigin(int index)
       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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The origin at the given index.
    • getOriginBytes

      com.google.protobuf.ByteString getOriginBytes(int index)
       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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the origin at the given index.
    • getMethodList

      List<String> getMethodList()
       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;
      Returns:
      A list containing the method.
    • getMethodCount

      int getMethodCount()
       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;
      Returns:
      The count of method.
    • getMethod

      String getMethod(int index)
       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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The method at the given index.
    • getMethodBytes

      com.google.protobuf.ByteString getMethodBytes(int index)
       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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the method at the given index.
    • getResponseHeaderList

      List<String> getResponseHeaderList()
       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;
      Returns:
      A list containing the responseHeader.
    • getResponseHeaderCount

      int getResponseHeaderCount()
       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;
      Returns:
      The count of responseHeader.
    • getResponseHeader

      String getResponseHeader(int index)
       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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The responseHeader at the given index.
    • getResponseHeaderBytes

      com.google.protobuf.ByteString getResponseHeaderBytes(int index)
       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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the responseHeader at the given index.
    • getMaxAgeSeconds

      int getMaxAgeSeconds()
       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;
      Returns:
      The maxAgeSeconds.