类 VirtualServiceOuterClass.TLSRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
istio.networking.v1alpha3.VirtualServiceOuterClass.TLSRoute.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.TLSRouteOrBuilder,Cloneable
public static final class VirtualServiceOuterClass.TLSRoute.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
implements VirtualServiceOuterClass.TLSRouteOrBuilder
Describes match conditions and actions for routing unterminated TLS
traffic (TLS/HTTPS) The following routing rule forwards unterminated TLS
traffic arriving at port 443 of gateway called "mygateway" to internal
services in the mesh based on the SNI value.
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: bookinfo-sni
spec:
hosts:
- "*.bookinfo.com"
gateways:
- mygateway
tls:
- match:
- port: 443
sniHosts:
- login.bookinfo.com
route:
- destination:
host: login.prod.svc.cluster.local
- match:
- port: 443
sniHosts:
- reviews.bookinfo.com
route:
- destination:
host: reviews.prod.svc.cluster.local
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: bookinfo-sni
spec:
hosts:
- "*.bookinfo.com"
gateways:
- mygateway
tls:
- match:
- port: 443
sniHosts:
- login.bookinfo.com
route:
- destination:
host: login.prod.svc.cluster.local
- match:
- port: 443
sniHosts:
- reviews.bookinfo.com
route:
- destination:
host: reviews.prod.svc.cluster.local
```
{{</tab>}}
{{</tabset>}}
Protobuf type istio.networking.v1alpha3.TLSRoute-
方法概要
修饰符和类型方法说明addAllMatch(Iterable<? extends VirtualServiceOuterClass.TLSMatchAttributes> values) Match conditions to be satisfied for the rule to be activated.addAllRoute(Iterable<? extends VirtualServiceOuterClass.RouteDestination> values) The destination to which the connection should be forwarded to.addMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes value) Match conditions to be satisfied for the rule to be activated.addMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes.Builder builderForValue) Match conditions to be satisfied for the rule to be activated.Match conditions to be satisfied for the rule to be activated.addMatch(VirtualServiceOuterClass.TLSMatchAttributes.Builder builderForValue) Match conditions to be satisfied for the rule to be activated.Match conditions to be satisfied for the rule to be activated.addMatchBuilder(int index) Match conditions to be satisfied for the rule to be activated.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRoute(int index, VirtualServiceOuterClass.RouteDestination value) The destination to which the connection should be forwarded to.addRoute(int index, VirtualServiceOuterClass.RouteDestination.Builder builderForValue) The destination to which the connection should be forwarded to.The destination to which the connection should be forwarded to.addRoute(VirtualServiceOuterClass.RouteDestination.Builder builderForValue) The destination to which the connection should be forwarded to.The destination to which the connection should be forwarded to.addRouteBuilder(int index) The destination to which the connection should be forwarded to.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Match conditions to be satisfied for the rule to be activated.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The destination to which the connection should be forwarded to.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMatch(int index) Match conditions to be satisfied for the rule to be activated.getMatchBuilder(int index) Match conditions to be satisfied for the rule to be activated.Match conditions to be satisfied for the rule to be activated.intMatch conditions to be satisfied for the rule to be activated.Match conditions to be satisfied for the rule to be activated.getMatchOrBuilder(int index) Match conditions to be satisfied for the rule to be activated.Match conditions to be satisfied for the rule to be activated.getRoute(int index) The destination to which the connection should be forwarded to.getRouteBuilder(int index) The destination to which the connection should be forwarded to.The destination to which the connection should be forwarded to.intThe destination to which the connection should be forwarded to.The destination to which the connection should be forwarded to.getRouteOrBuilder(int index) The destination to which the connection should be forwarded to.The destination to which the connection should be forwarded to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeMatch(int index) Match conditions to be satisfied for the rule to be activated.removeRoute(int index) The destination to which the connection should be forwarded to.setMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes value) Match conditions to be satisfied for the rule to be activated.setMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes.Builder builderForValue) Match conditions to be satisfied for the rule to be activated.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRoute(int index, VirtualServiceOuterClass.RouteDestination value) The destination to which the connection should be forwarded to.setRoute(int index, VirtualServiceOuterClass.RouteDestination.Builder builderForValue) The destination to which the connection should be forwarded to.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
setField
public VirtualServiceOuterClass.TLSRoute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
clearField
public VirtualServiceOuterClass.TLSRoute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
clearOneof
public VirtualServiceOuterClass.TLSRoute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
setRepeatedField
public VirtualServiceOuterClass.TLSRoute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
addRepeatedField
public VirtualServiceOuterClass.TLSRoute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
mergeFrom
public VirtualServiceOuterClass.TLSRoute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.TLSRoute.Builder>- 抛出:
IOException
-
getMatchList
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getMatchCount
public int getMatchCount()Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getMatch
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
setMatch
public VirtualServiceOuterClass.TLSRoute.Builder setMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes value) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
setMatch
public VirtualServiceOuterClass.TLSRoute.Builder setMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes.Builder builderForValue) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addMatch
public VirtualServiceOuterClass.TLSRoute.Builder addMatch(VirtualServiceOuterClass.TLSMatchAttributes value) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addMatch
public VirtualServiceOuterClass.TLSRoute.Builder addMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes value) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addMatch
public VirtualServiceOuterClass.TLSRoute.Builder addMatch(VirtualServiceOuterClass.TLSMatchAttributes.Builder builderForValue) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addMatch
public VirtualServiceOuterClass.TLSRoute.Builder addMatch(int index, VirtualServiceOuterClass.TLSMatchAttributes.Builder builderForValue) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addAllMatch
public VirtualServiceOuterClass.TLSRoute.Builder addAllMatch(Iterable<? extends VirtualServiceOuterClass.TLSMatchAttributes> values) Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearMatch
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
removeMatch
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getMatchBuilder
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getMatchOrBuilder
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getMatchOrBuilderList
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addMatchBuilder
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
addMatchBuilder
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getMatchBuilderList
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.TLSMatchAttributes match = 1 [(.google.api.field_behavior) = REQUIRED]; -
getRouteList
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
getRouteCount
public int getRouteCount()The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
getRoute
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
setRoute
public VirtualServiceOuterClass.TLSRoute.Builder setRoute(int index, VirtualServiceOuterClass.RouteDestination value) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
setRoute
public VirtualServiceOuterClass.TLSRoute.Builder setRoute(int index, VirtualServiceOuterClass.RouteDestination.Builder builderForValue) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addRoute
public VirtualServiceOuterClass.TLSRoute.Builder addRoute(VirtualServiceOuterClass.RouteDestination value) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addRoute
public VirtualServiceOuterClass.TLSRoute.Builder addRoute(int index, VirtualServiceOuterClass.RouteDestination value) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addRoute
public VirtualServiceOuterClass.TLSRoute.Builder addRoute(VirtualServiceOuterClass.RouteDestination.Builder builderForValue) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addRoute
public VirtualServiceOuterClass.TLSRoute.Builder addRoute(int index, VirtualServiceOuterClass.RouteDestination.Builder builderForValue) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addAllRoute
public VirtualServiceOuterClass.TLSRoute.Builder addAllRoute(Iterable<? extends VirtualServiceOuterClass.RouteDestination> values) The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
clearRoute
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
removeRoute
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
getRouteBuilder
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
getRouteOrBuilder
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
getRouteOrBuilderList
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addRouteBuilder
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
addRouteBuilder
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
getRouteBuilderList
The destination to which the connection should be forwarded to.
repeated .istio.networking.v1alpha3.RouteDestination route = 2; -
setUnknownFields
public final VirtualServiceOuterClass.TLSRoute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-
mergeUnknownFields
public final VirtualServiceOuterClass.TLSRoute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.TLSRoute.Builder>
-