public static final class VirtualServiceOuterClass.CorsPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder> implements VirtualServiceOuterClass.CorsPolicyOrBuilder
Describes the Cross-Origin Resource Sharing (CORS) policy, for a given
service. Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)
for further details about cross origin resource sharing. For example,
the following rule restricts cross origin requests to those originating
from example.com domain using HTTP POST/GET, and sets the
`Access-Control-Allow-Credentials` header to false. In addition, it only
exposes `X-Foo-bar` header and sets an expiry period of 1 day.
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: ratings-route
spec:
hosts:
- ratings.prod.svc.cluster.local
http:
- route:
- destination:
host: ratings.prod.svc.cluster.local
subset: v1
corsPolicy:
allowOrigins:
- exact: https://example.com
allowMethods:
- POST
- GET
allowCredentials: false
allowHeaders:
- X-Foo-Bar
maxAge: "24h"
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: ratings-route
spec:
hosts:
- ratings.prod.svc.cluster.local
http:
- route:
- destination:
host: ratings.prod.svc.cluster.local
subset: v1
corsPolicy:
allowOrigins:
- exact: https://example.com
allowMethods:
- POST
- GET
allowCredentials: false
allowHeaders:
- X-Foo-Bar
maxAge: "24h"
```
{{</tab>}}
{{</tabset>}}
Protobuf type istio.networking.v1alpha3.CorsPolicy| 限定符和类型 | 方法和说明 |
|---|---|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllAllowHeaders(Iterable<String> values)
List of HTTP headers that can be used when requesting the
resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllAllowMethods(Iterable<String> values)
List of HTTP methods allowed to access the resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllAllowOrigin(Iterable<String> values)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllAllowOrigins(Iterable<? extends VirtualServiceOuterClass.StringMatch> values)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllExposeHeaders(Iterable<String> values)
A list of HTTP headers that the browsers are allowed to
access.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowHeaders(String value)
List of HTTP headers that can be used when requesting the
resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowHeadersBytes(com.google.protobuf.ByteString value)
List of HTTP headers that can be used when requesting the
resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowMethods(String value)
List of HTTP methods allowed to access the resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowMethodsBytes(com.google.protobuf.ByteString value)
List of HTTP methods allowed to access the resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowOrigin(String value)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowOriginBytes(com.google.protobuf.ByteString value)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowOrigins(int index,
VirtualServiceOuterClass.StringMatch.Builder builderForValue)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowOrigins(int index,
VirtualServiceOuterClass.StringMatch value)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowOrigins(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addAllowOrigins(VirtualServiceOuterClass.StringMatch value)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.StringMatch.Builder |
addAllowOriginsBuilder()
String patterns that match allowed origins.
|
VirtualServiceOuterClass.StringMatch.Builder |
addAllowOriginsBuilder(int index)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addExposeHeaders(String value)
A list of HTTP headers that the browsers are allowed to
access.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addExposeHeadersBytes(com.google.protobuf.ByteString value)
A list of HTTP headers that the browsers are allowed to
access.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VirtualServiceOuterClass.CorsPolicy |
build() |
VirtualServiceOuterClass.CorsPolicy |
buildPartial() |
VirtualServiceOuterClass.CorsPolicy.Builder |
clear() |
VirtualServiceOuterClass.CorsPolicy.Builder |
clearAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearAllowHeaders()
List of HTTP headers that can be used when requesting the
resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearAllowMethods()
List of HTTP methods allowed to access the resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearAllowOrigin()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearAllowOrigins()
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearExposeHeaders()
A list of HTTP headers that the browsers are allowed to
access.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VirtualServiceOuterClass.CorsPolicy.Builder |
clearMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VirtualServiceOuterClass.CorsPolicy.Builder |
clone() |
com.google.protobuf.BoolValue |
getAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
com.google.protobuf.BoolValue.Builder |
getAllowCredentialsBuilder()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
com.google.protobuf.BoolValueOrBuilder |
getAllowCredentialsOrBuilder()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
String |
getAllowHeaders(int index)
List of HTTP headers that can be used when requesting the
resource.
|
com.google.protobuf.ByteString |
getAllowHeadersBytes(int index)
List of HTTP headers that can be used when requesting the
resource.
|
int |
getAllowHeadersCount()
List of HTTP headers that can be used when requesting the
resource.
|
com.google.protobuf.ProtocolStringList |
getAllowHeadersList()
List of HTTP headers that can be used when requesting the
resource.
|
String |
getAllowMethods(int index)
List of HTTP methods allowed to access the resource.
|
com.google.protobuf.ByteString |
getAllowMethodsBytes(int index)
List of HTTP methods allowed to access the resource.
|
int |
getAllowMethodsCount()
List of HTTP methods allowed to access the resource.
|
com.google.protobuf.ProtocolStringList |
getAllowMethodsList()
List of HTTP methods allowed to access the resource.
|
String |
getAllowOrigin(int index)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
com.google.protobuf.ByteString |
getAllowOriginBytes(int index)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
int |
getAllowOriginCount()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
com.google.protobuf.ProtocolStringList |
getAllowOriginList()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.StringMatch |
getAllowOrigins(int index)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.StringMatch.Builder |
getAllowOriginsBuilder(int index)
String patterns that match allowed origins.
|
List<VirtualServiceOuterClass.StringMatch.Builder> |
getAllowOriginsBuilderList()
String patterns that match allowed origins.
|
int |
getAllowOriginsCount()
String patterns that match allowed origins.
|
List<VirtualServiceOuterClass.StringMatch> |
getAllowOriginsList()
String patterns that match allowed origins.
|
VirtualServiceOuterClass.StringMatchOrBuilder |
getAllowOriginsOrBuilder(int index)
String patterns that match allowed origins.
|
List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> |
getAllowOriginsOrBuilderList()
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExposeHeaders(int index)
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.ByteString |
getExposeHeadersBytes(int index)
A list of HTTP headers that the browsers are allowed to
access.
|
int |
getExposeHeadersCount()
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.ProtocolStringList |
getExposeHeadersList()
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.Duration |
getMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
com.google.protobuf.Duration.Builder |
getMaxAgeBuilder()
Specifies how long the results of a preflight request can be
cached.
|
com.google.protobuf.DurationOrBuilder |
getMaxAgeOrBuilder()
Specifies how long the results of a preflight request can be
cached.
|
boolean |
hasAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
boolean |
hasMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VirtualServiceOuterClass.CorsPolicy.Builder |
mergeAllowCredentials(com.google.protobuf.BoolValue value)
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VirtualServiceOuterClass.CorsPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
VirtualServiceOuterClass.CorsPolicy.Builder |
mergeFrom(VirtualServiceOuterClass.CorsPolicy other) |
VirtualServiceOuterClass.CorsPolicy.Builder |
mergeMaxAge(com.google.protobuf.Duration value)
Specifies how long the results of a preflight request can be
cached.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VirtualServiceOuterClass.CorsPolicy.Builder |
removeAllowOrigins(int index)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue)
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowCredentials(com.google.protobuf.BoolValue value)
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowHeaders(int index,
String value)
List of HTTP headers that can be used when requesting the
resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowMethods(int index,
String value)
List of HTTP methods allowed to access the resource.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowOrigin(int index,
String value)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowOrigins(int index,
VirtualServiceOuterClass.StringMatch.Builder builderForValue)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setAllowOrigins(int index,
VirtualServiceOuterClass.StringMatch value)
String patterns that match allowed origins.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setExposeHeaders(int index,
String value)
A list of HTTP headers that the browsers are allowed to
access.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VirtualServiceOuterClass.CorsPolicy.Builder |
setMaxAge(com.google.protobuf.Duration.Builder builderForValue)
Specifies how long the results of a preflight request can be
cached.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setMaxAge(com.google.protobuf.Duration value)
Specifies how long the results of a preflight request can be
cached.
|
VirtualServiceOuterClass.CorsPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VirtualServiceOuterClass.CorsPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic VirtualServiceOuterClass.CorsPolicy build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic VirtualServiceOuterClass.CorsPolicy buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic VirtualServiceOuterClass.CorsPolicy.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder mergeFrom(VirtualServiceOuterClass.CorsPolicy other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public VirtualServiceOuterClass.CorsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>IOException@Deprecated public com.google.protobuf.ProtocolStringList getAllowOriginList()
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];getAllowOriginList 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilder@Deprecated public int getAllowOriginCount()
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];getAllowOriginCount 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilder@Deprecated public String getAllowOrigin(int index)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];getAllowOrigin 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.@Deprecated public com.google.protobuf.ByteString getAllowOriginBytes(int index)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];getAllowOriginBytes 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the value to return.@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder setAllowOrigin(int index, String value)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];index - The index to set the value at.value - The allowOrigin to set.@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigin(String value)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];value - The allowOrigin to add.@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder addAllAllowOrigin(Iterable<String> values)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];values - The allowOrigin to add.@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder clearAllowOrigin()
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOriginBytes(com.google.protobuf.ByteString value)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];value - The bytes of the allowOrigin to add.public List<VirtualServiceOuterClass.StringMatch> getAllowOriginsList()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public int getAllowOriginsCount()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.StringMatch getAllowOrigins(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder setAllowOrigins(int index, VirtualServiceOuterClass.StringMatch value)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder setAllowOrigins(int index, VirtualServiceOuterClass.StringMatch.Builder builderForValue)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(VirtualServiceOuterClass.StringMatch value)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(int index, VirtualServiceOuterClass.StringMatch value)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(VirtualServiceOuterClass.StringMatch.Builder builderForValue)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(int index, VirtualServiceOuterClass.StringMatch.Builder builderForValue)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder addAllAllowOrigins(Iterable<? extends VirtualServiceOuterClass.StringMatch> values)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder clearAllowOrigins()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.CorsPolicy.Builder removeAllowOrigins(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.StringMatch.Builder getAllowOriginsBuilder(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.StringMatchOrBuilder getAllowOriginsOrBuilder(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> getAllowOriginsOrBuilderList()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.StringMatch.Builder addAllowOriginsBuilder()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public VirtualServiceOuterClass.StringMatch.Builder addAllowOriginsBuilder(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public List<VirtualServiceOuterClass.StringMatch.Builder> getAllowOriginsBuilderList()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;public com.google.protobuf.ProtocolStringList getAllowMethodsList()
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;getAllowMethodsList 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic int getAllowMethodsCount()
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;getAllowMethodsCount 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic String getAllowMethods(int index)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;getAllowMethods 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowMethodsBytes(int index)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;getAllowMethodsBytes 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the value to return.public VirtualServiceOuterClass.CorsPolicy.Builder setAllowMethods(int index, String value)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;index - The index to set the value at.value - The allowMethods to set.public VirtualServiceOuterClass.CorsPolicy.Builder addAllowMethods(String value)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;value - The allowMethods to add.public VirtualServiceOuterClass.CorsPolicy.Builder addAllAllowMethods(Iterable<String> values)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;values - The allowMethods to add.public VirtualServiceOuterClass.CorsPolicy.Builder clearAllowMethods()
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;public VirtualServiceOuterClass.CorsPolicy.Builder addAllowMethodsBytes(com.google.protobuf.ByteString value)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;value - The bytes of the allowMethods to add.public com.google.protobuf.ProtocolStringList getAllowHeadersList()
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;getAllowHeadersList 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic int getAllowHeadersCount()
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;getAllowHeadersCount 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic String getAllowHeaders(int index)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;getAllowHeaders 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowHeadersBytes(int index)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;getAllowHeadersBytes 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the value to return.public VirtualServiceOuterClass.CorsPolicy.Builder setAllowHeaders(int index, String value)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;index - The index to set the value at.value - The allowHeaders to set.public VirtualServiceOuterClass.CorsPolicy.Builder addAllowHeaders(String value)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;value - The allowHeaders to add.public VirtualServiceOuterClass.CorsPolicy.Builder addAllAllowHeaders(Iterable<String> values)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;values - The allowHeaders to add.public VirtualServiceOuterClass.CorsPolicy.Builder clearAllowHeaders()
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;public VirtualServiceOuterClass.CorsPolicy.Builder addAllowHeadersBytes(com.google.protobuf.ByteString value)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;value - The bytes of the allowHeaders to add.public com.google.protobuf.ProtocolStringList getExposeHeadersList()
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;getExposeHeadersList 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic int getExposeHeadersCount()
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;getExposeHeadersCount 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic String getExposeHeaders(int index)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;getExposeHeaders 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExposeHeadersBytes(int index)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;getExposeHeadersBytes 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the value to return.public VirtualServiceOuterClass.CorsPolicy.Builder setExposeHeaders(int index, String value)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;index - The index to set the value at.value - The exposeHeaders to set.public VirtualServiceOuterClass.CorsPolicy.Builder addExposeHeaders(String value)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;value - The exposeHeaders to add.public VirtualServiceOuterClass.CorsPolicy.Builder addAllExposeHeaders(Iterable<String> values)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;values - The exposeHeaders to add.public VirtualServiceOuterClass.CorsPolicy.Builder clearExposeHeaders()
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;public VirtualServiceOuterClass.CorsPolicy.Builder addExposeHeadersBytes(com.google.protobuf.ByteString value)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;value - The bytes of the exposeHeaders to add.public boolean hasMaxAge()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;hasMaxAge 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.Duration getMaxAge()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;getMaxAge 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic VirtualServiceOuterClass.CorsPolicy.Builder setMaxAge(com.google.protobuf.Duration value)
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;public VirtualServiceOuterClass.CorsPolicy.Builder setMaxAge(com.google.protobuf.Duration.Builder builderForValue)
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;public VirtualServiceOuterClass.CorsPolicy.Builder mergeMaxAge(com.google.protobuf.Duration value)
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;public VirtualServiceOuterClass.CorsPolicy.Builder clearMaxAge()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;public com.google.protobuf.Duration.Builder getMaxAgeBuilder()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;public com.google.protobuf.DurationOrBuilder getMaxAgeOrBuilder()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;public boolean hasAllowCredentials()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;hasAllowCredentials 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic com.google.protobuf.BoolValue getAllowCredentials()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;getAllowCredentials 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderpublic VirtualServiceOuterClass.CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue value)
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;public VirtualServiceOuterClass.CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue)
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;public VirtualServiceOuterClass.CorsPolicy.Builder mergeAllowCredentials(com.google.protobuf.BoolValue value)
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;public VirtualServiceOuterClass.CorsPolicy.Builder clearAllowCredentials()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;public com.google.protobuf.BoolValue.Builder getAllowCredentialsBuilder()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;public final VirtualServiceOuterClass.CorsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>public final VirtualServiceOuterClass.CorsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.