类 VirtualServiceOuterClass.Destination.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
- istio.networking.v1alpha3.VirtualServiceOuterClass.Destination.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.DestinationOrBuilder,java.lang.Cloneable
public static final class VirtualServiceOuterClass.Destination.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder> implements VirtualServiceOuterClass.DestinationOrBuilder
Destination indicates the network addressable service to which the request/connection will be sent after processing a routing rule. The destination.host should unambiguously refer to a service in the service registry. Istio's service registry is composed of all the services found in the platform's service registry (e.g., Kubernetes services, Consul services), as well as services declared through the [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry) resource. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._ The following Kubernetes example routes all traffic by default to pods of the reviews service with label "version: v1" (i.e., subset v1), and some to subset v2, in a Kubernetes environment. {{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: reviews-route namespace: foo spec: hosts: - reviews # interpreted as reviews.foo.svc.cluster.local http: - match: - uri: prefix: "/wpcatalog" - uri: prefix: "/consumercatalog" rewrite: uri: "/newcatalog" route: - destination: host: reviews # interpreted as reviews.foo.svc.cluster.local subset: v2 - route: - destination: host: reviews # interpreted as reviews.foo.svc.cluster.local subset: v1 ``` {{</tab>}} {{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: reviews-route namespace: foo spec: hosts: - reviews # interpreted as reviews.foo.svc.cluster.local http: - match: - uri: prefix: "/wpcatalog" - uri: prefix: "/consumercatalog" rewrite: uri: "/newcatalog" route: - destination: host: reviews # interpreted as reviews.foo.svc.cluster.local subset: v2 - route: - destination: host: reviews # interpreted as reviews.foo.svc.cluster.local subset: v1 ``` {{</tab>}} {{</tabset>}} And the associated DestinationRule {{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata: name: reviews-destination namespace: foo spec: host: reviews # interpreted as reviews.foo.svc.cluster.local subsets: - name: v1 labels: version: v1 - name: v2 labels: version: v2 ``` {{</tab>}} {{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata: name: reviews-destination namespace: foo spec: host: reviews # interpreted as reviews.foo.svc.cluster.local subsets: - name: v1 labels: version: v1 - name: v2 labels: version: v2 ``` {{</tab>}} {{</tabset>}} The following VirtualService sets a timeout of 5s for all calls to productpage.prod.svc.cluster.local service in Kubernetes. Notice that there are no subsets defined in this rule. Istio will fetch all instances of productpage.prod.svc.cluster.local service from the service registry and populate the sidecar's load balancing pool. Also, notice that this rule is set in the istio-system namespace but uses the fully qualified domain name of the productpage service, productpage.prod.svc.cluster.local. Therefore the rule's namespace does not have an impact in resolving the name of the productpage service. {{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: my-productpage-rule namespace: istio-system spec: hosts: - productpage.prod.svc.cluster.local # ignores rule namespace http: - timeout: 5s route: - destination: host: productpage.prod.svc.cluster.local ``` {{</tab>}} {{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: my-productpage-rule namespace: istio-system spec: hosts: - productpage.prod.svc.cluster.local # ignores rule namespace http: - timeout: 5s route: - destination: host: productpage.prod.svc.cluster.local ``` {{</tab>}} {{</tabset>}} To control routing for traffic bound to services outside the mesh, external services must first be added to Istio's internal service registry using the ServiceEntry resource. VirtualServices can then be defined to control traffic bound to these external services. For example, the following rules define a Service for wikipedia.org and set a timeout of 5s for HTTP requests. {{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: external-svc-wikipedia spec: hosts: - wikipedia.org location: MESH_EXTERNAL ports: - number: 80 name: example-http protocol: HTTP resolution: DNS apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: my-wiki-rule spec: hosts: - wikipedia.org http: - timeout: 5s route: - destination: host: wikipedia.org ``` {{</tab>}} {{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: ServiceEntry metadata: name: external-svc-wikipedia spec: hosts: - wikipedia.org location: MESH_EXTERNAL ports: - number: 80 name: example-http protocol: HTTP resolution: DNS apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: my-wiki-rule spec: hosts: - wikipedia.org http: - timeout: 5s route: - destination: host: wikipedia.org ``` {{</tab>}} {{</tabset>}}Protobuf typeistio.networking.v1alpha3.Destination
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.lang.Objecthost_private VirtualServiceOuterClass.PortSelectorport_private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.PortSelector,VirtualServiceOuterClass.PortSelector.Builder,VirtualServiceOuterClass.PortSelectorOrBuilder>portBuilder_private java.lang.Objectsubset_
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 VirtualServiceOuterClass.Destination.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)VirtualServiceOuterClass.Destinationbuild()VirtualServiceOuterClass.DestinationbuildPartial()VirtualServiceOuterClass.Destination.Builderclear()VirtualServiceOuterClass.Destination.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VirtualServiceOuterClass.Destination.BuilderclearHost()The name of a service from the service registry.VirtualServiceOuterClass.Destination.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VirtualServiceOuterClass.Destination.BuilderclearPort()Specifies the port on the host that is being addressed.VirtualServiceOuterClass.Destination.BuilderclearSubset()The name of a subset within the service.VirtualServiceOuterClass.Destination.Builderclone()VirtualServiceOuterClass.DestinationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetHost()The name of a service from the service registry.com.google.protobuf.ByteStringgetHostBytes()The name of a service from the service registry.VirtualServiceOuterClass.PortSelectorgetPort()Specifies the port on the host that is being addressed.VirtualServiceOuterClass.PortSelector.BuildergetPortBuilder()Specifies the port on the host that is being addressed.private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.PortSelector,VirtualServiceOuterClass.PortSelector.Builder,VirtualServiceOuterClass.PortSelectorOrBuilder>getPortFieldBuilder()Specifies the port on the host that is being addressed.VirtualServiceOuterClass.PortSelectorOrBuildergetPortOrBuilder()Specifies the port on the host that is being addressed.java.lang.StringgetSubset()The name of a subset within the service.com.google.protobuf.ByteStringgetSubsetBytes()The name of a subset within the service.booleanhasPort()Specifies the port on the host that is being addressed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VirtualServiceOuterClass.Destination.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VirtualServiceOuterClass.Destination.BuildermergeFrom(com.google.protobuf.Message other)VirtualServiceOuterClass.Destination.BuildermergeFrom(VirtualServiceOuterClass.Destination other)VirtualServiceOuterClass.Destination.BuildermergePort(VirtualServiceOuterClass.PortSelector value)Specifies the port on the host that is being addressed.VirtualServiceOuterClass.Destination.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VirtualServiceOuterClass.Destination.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)VirtualServiceOuterClass.Destination.BuildersetHost(java.lang.String value)The name of a service from the service registry.VirtualServiceOuterClass.Destination.BuildersetHostBytes(com.google.protobuf.ByteString value)The name of a service from the service registry.VirtualServiceOuterClass.Destination.BuildersetPort(VirtualServiceOuterClass.PortSelector value)Specifies the port on the host that is being addressed.VirtualServiceOuterClass.Destination.BuildersetPort(VirtualServiceOuterClass.PortSelector.Builder builderForValue)Specifies the port on the host that is being addressed.VirtualServiceOuterClass.Destination.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)VirtualServiceOuterClass.Destination.BuildersetSubset(java.lang.String value)The name of a subset within the service.VirtualServiceOuterClass.Destination.BuildersetSubsetBytes(com.google.protobuf.ByteString value)The name of a subset within the service.VirtualServiceOuterClass.Destination.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
-
-
-
字段详细资料
-
host_
private java.lang.Object host_
-
subset_
private java.lang.Object subset_
-
port_
private VirtualServiceOuterClass.PortSelector port_
-
portBuilder_
private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.PortSelector,VirtualServiceOuterClass.PortSelector.Builder,VirtualServiceOuterClass.PortSelectorOrBuilder> portBuilder_
-
-
方法详细资料
-
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.Destination.Builder>
-
clear
public VirtualServiceOuterClass.Destination.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.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.Destination.Builder>
-
getDefaultInstanceForType
public VirtualServiceOuterClass.Destination getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public VirtualServiceOuterClass.Destination build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public VirtualServiceOuterClass.Destination buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
public VirtualServiceOuterClass.Destination.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
setField
public VirtualServiceOuterClass.Destination.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
clearField
public VirtualServiceOuterClass.Destination.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
clearOneof
public VirtualServiceOuterClass.Destination.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
setRepeatedField
public VirtualServiceOuterClass.Destination.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
addRepeatedField
public VirtualServiceOuterClass.Destination.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
mergeFrom
public VirtualServiceOuterClass.Destination.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.Destination.Builder>
-
mergeFrom
public VirtualServiceOuterClass.Destination.Builder mergeFrom(VirtualServiceOuterClass.Destination other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
mergeFrom
public VirtualServiceOuterClass.Destination.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.Destination.Builder>- 抛出:
java.io.IOException
-
getHost
public java.lang.String getHost()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getHost在接口中VirtualServiceOuterClass.DestinationOrBuilder- 返回:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getHostBytes在接口中VirtualServiceOuterClass.DestinationOrBuilder- 返回:
- The bytes for host.
-
setHost
public VirtualServiceOuterClass.Destination.Builder setHost(java.lang.String value)
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The host to set.- 返回:
- This builder for chaining.
-
clearHost
public VirtualServiceOuterClass.Destination.Builder clearHost()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
setHostBytes
public VirtualServiceOuterClass.Destination.Builder setHostBytes(com.google.protobuf.ByteString value)
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The bytes for host to set.- 返回:
- This builder for chaining.
-
getSubset
public java.lang.String getSubset()
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 指定者:
getSubset在接口中VirtualServiceOuterClass.DestinationOrBuilder- 返回:
- The subset.
-
getSubsetBytes
public com.google.protobuf.ByteString getSubsetBytes()
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 指定者:
getSubsetBytes在接口中VirtualServiceOuterClass.DestinationOrBuilder- 返回:
- The bytes for subset.
-
setSubset
public VirtualServiceOuterClass.Destination.Builder setSubset(java.lang.String value)
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 参数:
value- The subset to set.- 返回:
- This builder for chaining.
-
clearSubset
public VirtualServiceOuterClass.Destination.Builder clearSubset()
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 返回:
- This builder for chaining.
-
setSubsetBytes
public VirtualServiceOuterClass.Destination.Builder setSubsetBytes(com.google.protobuf.ByteString value)
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 参数:
value- The bytes for subset to set.- 返回:
- This builder for chaining.
-
hasPort
public boolean hasPort()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;- 指定者:
hasPort在接口中VirtualServiceOuterClass.DestinationOrBuilder- 返回:
- Whether the port field is set.
-
getPort
public VirtualServiceOuterClass.PortSelector getPort()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;- 指定者:
getPort在接口中VirtualServiceOuterClass.DestinationOrBuilder- 返回:
- The port.
-
setPort
public VirtualServiceOuterClass.Destination.Builder setPort(VirtualServiceOuterClass.PortSelector value)
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
setPort
public VirtualServiceOuterClass.Destination.Builder setPort(VirtualServiceOuterClass.PortSelector.Builder builderForValue)
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
mergePort
public VirtualServiceOuterClass.Destination.Builder mergePort(VirtualServiceOuterClass.PortSelector value)
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
clearPort
public VirtualServiceOuterClass.Destination.Builder clearPort()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
getPortBuilder
public VirtualServiceOuterClass.PortSelector.Builder getPortBuilder()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
getPortOrBuilder
public VirtualServiceOuterClass.PortSelectorOrBuilder getPortOrBuilder()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
getPortFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<VirtualServiceOuterClass.PortSelector,VirtualServiceOuterClass.PortSelector.Builder,VirtualServiceOuterClass.PortSelectorOrBuilder> getPortFieldBuilder()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
setUnknownFields
public final VirtualServiceOuterClass.Destination.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
mergeUnknownFields
public final VirtualServiceOuterClass.Destination.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.Destination.Builder>
-
-