类 SidecarOuterClass.IstioEgressListener.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
- istio.networking.v1alpha3.SidecarOuterClass.IstioEgressListener.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SidecarOuterClass.IstioEgressListenerOrBuilder,java.lang.Cloneable
public static final class SidecarOuterClass.IstioEgressListener.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder> implements SidecarOuterClass.IstioEgressListenerOrBuilder
`IstioEgressListener` specifies the properties of an outbound traffic listener on the sidecar proxy attached to a workload instance.
Protobuf typeistio.networking.v1alpha3.IstioEgressListener
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.lang.Objectbind_private intbitField0_private intcaptureMode_private com.google.protobuf.LazyStringListhosts_private GatewayOuterClass.Portport_private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder>portBuilder_
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 SidecarOuterClass.IstioEgressListener.BuilderaddAllHosts(java.lang.Iterable<java.lang.String> values)One or more service hosts exposed by the listener in `namespace/dnsName` format.SidecarOuterClass.IstioEgressListener.BuilderaddHosts(java.lang.String value)One or more service hosts exposed by the listener in `namespace/dnsName` format.SidecarOuterClass.IstioEgressListener.BuilderaddHostsBytes(com.google.protobuf.ByteString value)One or more service hosts exposed by the listener in `namespace/dnsName` format.SidecarOuterClass.IstioEgressListener.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SidecarOuterClass.IstioEgressListenerbuild()SidecarOuterClass.IstioEgressListenerbuildPartial()SidecarOuterClass.IstioEgressListener.Builderclear()SidecarOuterClass.IstioEgressListener.BuilderclearBind()The IP or the Unix domain socket to which the listener should be bound to.SidecarOuterClass.IstioEgressListener.BuilderclearCaptureMode()When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).SidecarOuterClass.IstioEgressListener.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SidecarOuterClass.IstioEgressListener.BuilderclearHosts()One or more service hosts exposed by the listener in `namespace/dnsName` format.SidecarOuterClass.IstioEgressListener.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SidecarOuterClass.IstioEgressListener.BuilderclearPort()The port associated with the listener.SidecarOuterClass.IstioEgressListener.Builderclone()private voidensureHostsIsMutable()java.lang.StringgetBind()The IP or the Unix domain socket to which the listener should be bound to.com.google.protobuf.ByteStringgetBindBytes()The IP or the Unix domain socket to which the listener should be bound to.SidecarOuterClass.CaptureModegetCaptureMode()When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).intgetCaptureModeValue()When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).SidecarOuterClass.IstioEgressListenergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetHosts(int index)One or more service hosts exposed by the listener in `namespace/dnsName` format.com.google.protobuf.ByteStringgetHostsBytes(int index)One or more service hosts exposed by the listener in `namespace/dnsName` format.intgetHostsCount()One or more service hosts exposed by the listener in `namespace/dnsName` format.com.google.protobuf.ProtocolStringListgetHostsList()One or more service hosts exposed by the listener in `namespace/dnsName` format.GatewayOuterClass.PortgetPort()The port associated with the listener.GatewayOuterClass.Port.BuildergetPortBuilder()The port associated with the listener.private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder>getPortFieldBuilder()The port associated with the listener.GatewayOuterClass.PortOrBuildergetPortOrBuilder()The port associated with the listener.booleanhasPort()The port associated with the listener.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SidecarOuterClass.IstioEgressListener.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SidecarOuterClass.IstioEgressListener.BuildermergeFrom(com.google.protobuf.Message other)SidecarOuterClass.IstioEgressListener.BuildermergeFrom(SidecarOuterClass.IstioEgressListener other)SidecarOuterClass.IstioEgressListener.BuildermergePort(GatewayOuterClass.Port value)The port associated with the listener.SidecarOuterClass.IstioEgressListener.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SidecarOuterClass.IstioEgressListener.BuildersetBind(java.lang.String value)The IP or the Unix domain socket to which the listener should be bound to.SidecarOuterClass.IstioEgressListener.BuildersetBindBytes(com.google.protobuf.ByteString value)The IP or the Unix domain socket to which the listener should be bound to.SidecarOuterClass.IstioEgressListener.BuildersetCaptureMode(SidecarOuterClass.CaptureMode value)When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).SidecarOuterClass.IstioEgressListener.BuildersetCaptureModeValue(int value)When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).SidecarOuterClass.IstioEgressListener.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SidecarOuterClass.IstioEgressListener.BuildersetHosts(int index, java.lang.String value)One or more service hosts exposed by the listener in `namespace/dnsName` format.SidecarOuterClass.IstioEgressListener.BuildersetPort(GatewayOuterClass.Port value)The port associated with the listener.SidecarOuterClass.IstioEgressListener.BuildersetPort(GatewayOuterClass.Port.Builder builderForValue)The port associated with the listener.SidecarOuterClass.IstioEgressListener.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)SidecarOuterClass.IstioEgressListener.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
-
-
-
-
字段详细资料
-
bitField0_
private int bitField0_
-
port_
private GatewayOuterClass.Port port_
-
portBuilder_
private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder> portBuilder_
-
bind_
private java.lang.Object bind_
-
captureMode_
private int captureMode_
-
hosts_
private com.google.protobuf.LazyStringList hosts_
-
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
clear
public SidecarOuterClass.IstioEgressListener.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.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<SidecarOuterClass.IstioEgressListener.Builder>
-
getDefaultInstanceForType
public SidecarOuterClass.IstioEgressListener getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public SidecarOuterClass.IstioEgressListener build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public SidecarOuterClass.IstioEgressListener buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
public SidecarOuterClass.IstioEgressListener.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
setField
public SidecarOuterClass.IstioEgressListener.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
clearField
public SidecarOuterClass.IstioEgressListener.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
clearOneof
public SidecarOuterClass.IstioEgressListener.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
setRepeatedField
public SidecarOuterClass.IstioEgressListener.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<SidecarOuterClass.IstioEgressListener.Builder>
-
addRepeatedField
public SidecarOuterClass.IstioEgressListener.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
mergeFrom
public SidecarOuterClass.IstioEgressListener.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
mergeFrom
public SidecarOuterClass.IstioEgressListener.Builder mergeFrom(SidecarOuterClass.IstioEgressListener other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
mergeFrom
public SidecarOuterClass.IstioEgressListener.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<SidecarOuterClass.IstioEgressListener.Builder>- 抛出:
java.io.IOException
-
hasPort
public boolean hasPort()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;- 指定者:
hasPort在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- Whether the port field is set.
-
getPort
public GatewayOuterClass.Port getPort()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;- 指定者:
getPort在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- The port.
-
setPort
public SidecarOuterClass.IstioEgressListener.Builder setPort(GatewayOuterClass.Port value)
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
setPort
public SidecarOuterClass.IstioEgressListener.Builder setPort(GatewayOuterClass.Port.Builder builderForValue)
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
mergePort
public SidecarOuterClass.IstioEgressListener.Builder mergePort(GatewayOuterClass.Port value)
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
clearPort
public SidecarOuterClass.IstioEgressListener.Builder clearPort()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
getPortBuilder
public GatewayOuterClass.Port.Builder getPortBuilder()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
getPortOrBuilder
public GatewayOuterClass.PortOrBuilder getPortOrBuilder()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
getPortFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<GatewayOuterClass.Port,GatewayOuterClass.Port.Builder,GatewayOuterClass.PortOrBuilder> getPortFieldBuilder()
The port associated with the listener. If using Unix domain socket, use 0 as the port number, with a valid protocol. The port if specified, will be used as the default destination port associated with the imported hosts. If the port is omitted, Istio will infer the listener ports based on the imported hosts. Note that when multiple egress listeners are specified, where one or more listeners have specific ports while others have no port, the hosts exposed on a listener port will be based on the listener with the most specific port.
.istio.networking.v1alpha3.Port port = 1;
-
getBind
public java.lang.String getBind()
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;- 指定者:
getBind在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- The bind.
-
getBindBytes
public com.google.protobuf.ByteString getBindBytes()
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;- 指定者:
getBindBytes在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- The bytes for bind.
-
setBind
public SidecarOuterClass.IstioEgressListener.Builder setBind(java.lang.String value)
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;- 参数:
value- The bind to set.- 返回:
- This builder for chaining.
-
clearBind
public SidecarOuterClass.IstioEgressListener.Builder clearBind()
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;- 返回:
- This builder for chaining.
-
setBindBytes
public SidecarOuterClass.IstioEgressListener.Builder setBindBytes(com.google.protobuf.ByteString value)
The IP or the Unix domain socket to which the listener should be bound to. Port MUST be specified if bind is not empty. Format: `x.x.x.x` or `unix:///path/to/uds` or `unix://@foobar` (Linux abstract namespace). If omitted, Istio will automatically configure the defaults based on imported services, the workload instances to which this configuration is applied to and the captureMode. If captureMode is `NONE`, bind will default to 127.0.0.1.
string bind = 2;- 参数:
value- The bytes for bind to set.- 返回:
- This builder for chaining.
-
getCaptureModeValue
public int getCaptureModeValue()
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;- 指定者:
getCaptureModeValue在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- The enum numeric value on the wire for captureMode.
-
setCaptureModeValue
public SidecarOuterClass.IstioEgressListener.Builder setCaptureModeValue(int value)
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;- 参数:
value- The enum numeric value on the wire for captureMode to set.- 返回:
- This builder for chaining.
-
getCaptureMode
public SidecarOuterClass.CaptureMode getCaptureMode()
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;- 指定者:
getCaptureMode在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- The captureMode.
-
setCaptureMode
public SidecarOuterClass.IstioEgressListener.Builder setCaptureMode(SidecarOuterClass.CaptureMode value)
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;- 参数:
value- The captureMode to set.- 返回:
- This builder for chaining.
-
clearCaptureMode
public SidecarOuterClass.IstioEgressListener.Builder clearCaptureMode()
When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not). captureMode must be DEFAULT or `NONE` for Unix domain socket binds.
.istio.networking.v1alpha3.CaptureMode capture_mode = 3;- 返回:
- This builder for chaining.
-
ensureHostsIsMutable
private void ensureHostsIsMutable()
-
getHostsList
public com.google.protobuf.ProtocolStringList getHostsList()
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getHostsList在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- A list containing the hosts.
-
getHostsCount
public int getHostsCount()
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getHostsCount在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 返回:
- The count of hosts.
-
getHosts
public java.lang.String getHosts(int index)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getHosts在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The hosts at the given index.
-
getHostsBytes
public com.google.protobuf.ByteString getHostsBytes(int index)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getHostsBytes在接口中SidecarOuterClass.IstioEgressListenerOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the hosts at the given index.
-
setHosts
public SidecarOuterClass.IstioEgressListener.Builder setHosts(int index, java.lang.String value)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 参数:
index- The index to set the value at.value- The hosts to set.- 返回:
- This builder for chaining.
-
addHosts
public SidecarOuterClass.IstioEgressListener.Builder addHosts(java.lang.String value)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The hosts to add.- 返回:
- This builder for chaining.
-
addAllHosts
public SidecarOuterClass.IstioEgressListener.Builder addAllHosts(java.lang.Iterable<java.lang.String> values)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 参数:
values- The hosts to add.- 返回:
- This builder for chaining.
-
clearHosts
public SidecarOuterClass.IstioEgressListener.Builder clearHosts()
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
addHostsBytes
public SidecarOuterClass.IstioEgressListener.Builder addHostsBytes(com.google.protobuf.ByteString value)
One or more service hosts exposed by the listener in `namespace/dnsName` format. Services in the specified namespace matching `dnsName` will be exposed. The corresponding service can be a service in the service registry (e.g., a Kubernetes or cloud foundry service) or a service specified using a `ServiceEntry` or `VirtualService` configuration. Any associated `DestinationRule` in the same namespace will also be used. The `dnsName` should be specified using FQDN format, optionally including a wildcard character in the left-most component (e.g., `prod/*.example.com`). Set the `dnsName` to `*` to select all services from the specified namespace (e.g., `prod/*`). The `namespace` can be set to `*`, `.`, or `~`, representing any, the current, or no namespace, respectively. For example, `*/foo.example.com` selects the service from any available namespace while `./foo.example.com` only selects the service from the namespace of the sidecar. If a host is set to `*/*`, Istio will configure the sidecar to be able to reach every service in the mesh that is exported to the sidecar's namespace. The value `~/*` can be used to completely trim the configuration for sidecars that simply receive traffic and respond, but make no outbound connections of their own. NOTE: Only services and configuration artifacts exported to the sidecar's namespace (e.g., `exportTo` value of `*`) can be referenced. Private configurations (e.g., `exportTo` set to `.`) will not be available. Refer to the `exportTo` setting in `VirtualService`, `DestinationRule`, and `ServiceEntry` configurations for details. **WARNING:** The list of egress hosts in a `Sidecar` must also include the Mixer control plane services if they are enabled. Envoy will not be able to reach them otherwise. For example, add host `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if policy is enabled, or add `istio-system/*` to allow all services in the `istio-system` namespace. This requirement is temporary and will be removed in a future Istio release.
repeated string hosts = 4 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The bytes of the hosts to add.- 返回:
- This builder for chaining.
-
setUnknownFields
public final SidecarOuterClass.IstioEgressListener.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
mergeUnknownFields
public final SidecarOuterClass.IstioEgressListener.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.IstioEgressListener.Builder>
-
-