public static final class ServiceEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder> implements ServiceEntryOrBuilder
ServiceEntry enables adding additional entries into Istio's internal service registry. <!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true -->Protobuf type
istio.networking.v1alpha3.ServiceEntry| 限定符和类型 | 字段和说明 |
|---|---|
private com.google.protobuf.LazyStringList |
addresses_ |
private int |
bitField0_ |
private java.util.List<ServiceEntry.Endpoint> |
endpoints_ |
private com.google.protobuf.RepeatedFieldBuilderV3<ServiceEntry.Endpoint,ServiceEntry.Endpoint.Builder,ServiceEntry.EndpointOrBuilder> |
endpointsBuilder_ |
private com.google.protobuf.LazyStringList |
exportTo_ |
private com.google.protobuf.LazyStringList |
hosts_ |
private int |
location_ |
private java.util.List<Port> |
ports_ |
private com.google.protobuf.RepeatedFieldBuilderV3<Port,Port.Builder,PortOrBuilder> |
portsBuilder_ |
private int |
resolution_ |
private com.google.protobuf.LazyStringList |
subjectAltNames_ |
| 限定符 | 构造器和说明 |
|---|---|
private |
Builder() |
private |
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
ServiceEntry.Builder |
addAddresses(java.lang.String value)
The virtual IP addresses associated with the service.
|
ServiceEntry.Builder |
addAddressesBytes(com.google.protobuf.ByteString value)
The virtual IP addresses associated with the service.
|
ServiceEntry.Builder |
addAllAddresses(java.lang.Iterable<java.lang.String> values)
The virtual IP addresses associated with the service.
|
ServiceEntry.Builder |
addAllEndpoints(java.lang.Iterable<? extends ServiceEntry.Endpoint> values)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
addAllExportTo(java.lang.Iterable<java.lang.String> values)
A list of namespaces to which this service is exported.
|
ServiceEntry.Builder |
addAllHosts(java.lang.Iterable<java.lang.String> values)
REQUIRED.
|
ServiceEntry.Builder |
addAllPorts(java.lang.Iterable<? extends Port> values)
REQUIRED.
|
ServiceEntry.Builder |
addAllSubjectAltNames(java.lang.Iterable<java.lang.String> values)
The list of subject alternate names allowed for workload instances that
implement this service.
|
ServiceEntry.Builder |
addEndpoints(int index,
ServiceEntry.Endpoint.Builder builderForValue)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
addEndpoints(int index,
ServiceEntry.Endpoint value)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
addEndpoints(ServiceEntry.Endpoint.Builder builderForValue)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
addEndpoints(ServiceEntry.Endpoint value)
One or more endpoints associated with the service.
|
ServiceEntry.Endpoint.Builder |
addEndpointsBuilder()
One or more endpoints associated with the service.
|
ServiceEntry.Endpoint.Builder |
addEndpointsBuilder(int index)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
addExportTo(java.lang.String value)
A list of namespaces to which this service is exported.
|
ServiceEntry.Builder |
addExportToBytes(com.google.protobuf.ByteString value)
A list of namespaces to which this service is exported.
|
ServiceEntry.Builder |
addHosts(java.lang.String value)
REQUIRED.
|
ServiceEntry.Builder |
addHostsBytes(com.google.protobuf.ByteString value)
REQUIRED.
|
ServiceEntry.Builder |
addPorts(int index,
Port.Builder builderForValue)
REQUIRED.
|
ServiceEntry.Builder |
addPorts(int index,
Port value)
REQUIRED.
|
ServiceEntry.Builder |
addPorts(Port.Builder builderForValue)
REQUIRED.
|
ServiceEntry.Builder |
addPorts(Port value)
REQUIRED.
|
Port.Builder |
addPortsBuilder()
REQUIRED.
|
Port.Builder |
addPortsBuilder(int index)
REQUIRED.
|
ServiceEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceEntry.Builder |
addSubjectAltNames(java.lang.String value)
The list of subject alternate names allowed for workload instances that
implement this service.
|
ServiceEntry.Builder |
addSubjectAltNamesBytes(com.google.protobuf.ByteString value)
The list of subject alternate names allowed for workload instances that
implement this service.
|
ServiceEntry |
build() |
ServiceEntry |
buildPartial() |
ServiceEntry.Builder |
clear() |
ServiceEntry.Builder |
clearAddresses()
The virtual IP addresses associated with the service.
|
ServiceEntry.Builder |
clearEndpoints()
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
clearExportTo()
A list of namespaces to which this service is exported.
|
ServiceEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ServiceEntry.Builder |
clearHosts()
REQUIRED.
|
ServiceEntry.Builder |
clearLocation()
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
ServiceEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ServiceEntry.Builder |
clearPorts()
REQUIRED.
|
ServiceEntry.Builder |
clearResolution()
REQUIRED: Service discovery mode for the hosts.
|
ServiceEntry.Builder |
clearSubjectAltNames()
The list of subject alternate names allowed for workload instances that
implement this service.
|
ServiceEntry.Builder |
clone() |
private void |
ensureAddressesIsMutable() |
private void |
ensureEndpointsIsMutable() |
private void |
ensureExportToIsMutable() |
private void |
ensureHostsIsMutable() |
private void |
ensurePortsIsMutable() |
private void |
ensureSubjectAltNamesIsMutable() |
java.lang.String |
getAddresses(int index)
The virtual IP addresses associated with the service.
|
com.google.protobuf.ByteString |
getAddressesBytes(int index)
The virtual IP addresses associated with the service.
|
int |
getAddressesCount()
The virtual IP addresses associated with the service.
|
com.google.protobuf.ProtocolStringList |
getAddressesList()
The virtual IP addresses associated with the service.
|
ServiceEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ServiceEntry.Endpoint |
getEndpoints(int index)
One or more endpoints associated with the service.
|
ServiceEntry.Endpoint.Builder |
getEndpointsBuilder(int index)
One or more endpoints associated with the service.
|
java.util.List<ServiceEntry.Endpoint.Builder> |
getEndpointsBuilderList()
One or more endpoints associated with the service.
|
int |
getEndpointsCount()
One or more endpoints associated with the service.
|
private com.google.protobuf.RepeatedFieldBuilderV3<ServiceEntry.Endpoint,ServiceEntry.Endpoint.Builder,ServiceEntry.EndpointOrBuilder> |
getEndpointsFieldBuilder() |
java.util.List<ServiceEntry.Endpoint> |
getEndpointsList()
One or more endpoints associated with the service.
|
ServiceEntry.EndpointOrBuilder |
getEndpointsOrBuilder(int index)
One or more endpoints associated with the service.
|
java.util.List<? extends ServiceEntry.EndpointOrBuilder> |
getEndpointsOrBuilderList()
One or more endpoints associated with the service.
|
java.lang.String |
getExportTo(int index)
A list of namespaces to which this service is exported.
|
com.google.protobuf.ByteString |
getExportToBytes(int index)
A list of namespaces to which this service is exported.
|
int |
getExportToCount()
A list of namespaces to which this service is exported.
|
com.google.protobuf.ProtocolStringList |
getExportToList()
A list of namespaces to which this service is exported.
|
java.lang.String |
getHosts(int index)
REQUIRED.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
REQUIRED.
|
int |
getHostsCount()
REQUIRED.
|
com.google.protobuf.ProtocolStringList |
getHostsList()
REQUIRED.
|
ServiceEntry.Location |
getLocation()
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
int |
getLocationValue()
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
Port |
getPorts(int index)
REQUIRED.
|
Port.Builder |
getPortsBuilder(int index)
REQUIRED.
|
java.util.List<Port.Builder> |
getPortsBuilderList()
REQUIRED.
|
int |
getPortsCount()
REQUIRED.
|
private com.google.protobuf.RepeatedFieldBuilderV3<Port,Port.Builder,PortOrBuilder> |
getPortsFieldBuilder() |
java.util.List<Port> |
getPortsList()
REQUIRED.
|
PortOrBuilder |
getPortsOrBuilder(int index)
REQUIRED.
|
java.util.List<? extends PortOrBuilder> |
getPortsOrBuilderList()
REQUIRED.
|
ServiceEntry.Resolution |
getResolution()
REQUIRED: Service discovery mode for the hosts.
|
int |
getResolutionValue()
REQUIRED: Service discovery mode for the hosts.
|
java.lang.String |
getSubjectAltNames(int index)
The list of subject alternate names allowed for workload instances that
implement this service.
|
com.google.protobuf.ByteString |
getSubjectAltNamesBytes(int index)
The list of subject alternate names allowed for workload instances that
implement this service.
|
int |
getSubjectAltNamesCount()
The list of subject alternate names allowed for workload instances that
implement this service.
|
com.google.protobuf.ProtocolStringList |
getSubjectAltNamesList()
The list of subject alternate names allowed for workload instances that
implement this service.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
private void |
maybeForceBuilderInitialization() |
ServiceEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ServiceEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
ServiceEntry.Builder |
mergeFrom(ServiceEntry other) |
ServiceEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ServiceEntry.Builder |
removeEndpoints(int index)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
removePorts(int index)
REQUIRED.
|
ServiceEntry.Builder |
setAddresses(int index,
java.lang.String value)
The virtual IP addresses associated with the service.
|
ServiceEntry.Builder |
setEndpoints(int index,
ServiceEntry.Endpoint.Builder builderForValue)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
setEndpoints(int index,
ServiceEntry.Endpoint value)
One or more endpoints associated with the service.
|
ServiceEntry.Builder |
setExportTo(int index,
java.lang.String value)
A list of namespaces to which this service is exported.
|
ServiceEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceEntry.Builder |
setHosts(int index,
java.lang.String value)
REQUIRED.
|
ServiceEntry.Builder |
setLocation(ServiceEntry.Location value)
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
ServiceEntry.Builder |
setLocationValue(int value)
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
ServiceEntry.Builder |
setPorts(int index,
Port.Builder builderForValue)
REQUIRED.
|
ServiceEntry.Builder |
setPorts(int index,
Port value)
REQUIRED.
|
ServiceEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ServiceEntry.Builder |
setResolution(ServiceEntry.Resolution value)
REQUIRED: Service discovery mode for the hosts.
|
ServiceEntry.Builder |
setResolutionValue(int value)
REQUIRED: Service discovery mode for the hosts.
|
ServiceEntry.Builder |
setSubjectAltNames(int index,
java.lang.String value)
The list of subject alternate names allowed for workload instances that
implement this service.
|
ServiceEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionprivate int bitField0_
private com.google.protobuf.LazyStringList hosts_
private com.google.protobuf.LazyStringList addresses_
private java.util.List<Port> ports_
private com.google.protobuf.RepeatedFieldBuilderV3<Port,Port.Builder,PortOrBuilder> portsBuilder_
private int location_
private int resolution_
private java.util.List<ServiceEntry.Endpoint> endpoints_
private com.google.protobuf.RepeatedFieldBuilderV3<ServiceEntry.Endpoint,ServiceEntry.Endpoint.Builder,ServiceEntry.EndpointOrBuilder> endpointsBuilder_
private com.google.protobuf.LazyStringList exportTo_
private com.google.protobuf.LazyStringList subjectAltNames_
private Builder()
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>private void maybeForceBuilderInitialization()
public ServiceEntry.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic ServiceEntry build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic ServiceEntry buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic ServiceEntry.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<ServiceEntry.Builder>public ServiceEntry.Builder mergeFrom(ServiceEntry other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public ServiceEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<ServiceEntry.Builder>java.io.IOExceptionprivate void ensureHostsIsMutable()
public com.google.protobuf.ProtocolStringList getHostsList()
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;getHostsList 在接口中 ServiceEntryOrBuilderpublic int getHostsCount()
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;getHostsCount 在接口中 ServiceEntryOrBuilderpublic java.lang.String getHosts(int index)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;getHosts 在接口中 ServiceEntryOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getHostsBytes(int index)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;getHostsBytes 在接口中 ServiceEntryOrBuilderindex - The index of the value to return.public ServiceEntry.Builder setHosts(int index, java.lang.String value)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;index - The index to set the value at.value - The hosts to set.public ServiceEntry.Builder addHosts(java.lang.String value)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;value - The hosts to add.public ServiceEntry.Builder addAllHosts(java.lang.Iterable<java.lang.String> values)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;values - The hosts to add.public ServiceEntry.Builder clearHosts()
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;public ServiceEntry.Builder addHostsBytes(com.google.protobuf.ByteString value)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;value - The bytes of the hosts to add.private void ensureAddressesIsMutable()
public com.google.protobuf.ProtocolStringList getAddressesList()
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;getAddressesList 在接口中 ServiceEntryOrBuilderpublic int getAddressesCount()
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;getAddressesCount 在接口中 ServiceEntryOrBuilderpublic java.lang.String getAddresses(int index)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;getAddresses 在接口中 ServiceEntryOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAddressesBytes(int index)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;getAddressesBytes 在接口中 ServiceEntryOrBuilderindex - The index of the value to return.public ServiceEntry.Builder setAddresses(int index, java.lang.String value)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;index - The index to set the value at.value - The addresses to set.public ServiceEntry.Builder addAddresses(java.lang.String value)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;value - The addresses to add.public ServiceEntry.Builder addAllAddresses(java.lang.Iterable<java.lang.String> values)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;values - The addresses to add.public ServiceEntry.Builder clearAddresses()
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;public ServiceEntry.Builder addAddressesBytes(com.google.protobuf.ByteString value)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;value - The bytes of the addresses to add.private void ensurePortsIsMutable()
public java.util.List<Port> getPortsList()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;getPortsList 在接口中 ServiceEntryOrBuilderpublic int getPortsCount()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;getPortsCount 在接口中 ServiceEntryOrBuilderpublic Port getPorts(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;getPorts 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Builder setPorts(int index, Port value)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder setPorts(int index, Port.Builder builderForValue)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder addPorts(Port value)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder addPorts(int index, Port value)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder addPorts(Port.Builder builderForValue)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder addPorts(int index, Port.Builder builderForValue)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder addAllPorts(java.lang.Iterable<? extends Port> values)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder clearPorts()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public ServiceEntry.Builder removePorts(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public Port.Builder getPortsBuilder(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public PortOrBuilder getPortsOrBuilder(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;getPortsOrBuilder 在接口中 ServiceEntryOrBuilderpublic java.util.List<? extends PortOrBuilder> getPortsOrBuilderList()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;getPortsOrBuilderList 在接口中 ServiceEntryOrBuilderpublic Port.Builder addPortsBuilder()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public Port.Builder addPortsBuilder(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;public java.util.List<Port.Builder> getPortsBuilderList()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;private com.google.protobuf.RepeatedFieldBuilderV3<Port,Port.Builder,PortOrBuilder> getPortsFieldBuilder()
public int getLocationValue()
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;getLocationValue 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Builder setLocationValue(int value)
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;value - The enum numeric value on the wire for location to set.public ServiceEntry.Location getLocation()
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;getLocation 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Builder setLocation(ServiceEntry.Location value)
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;value - The location to set.public ServiceEntry.Builder clearLocation()
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;public int getResolutionValue()
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;getResolutionValue 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Builder setResolutionValue(int value)
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;value - The enum numeric value on the wire for resolution to set.public ServiceEntry.Resolution getResolution()
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;getResolution 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Builder setResolution(ServiceEntry.Resolution value)
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;value - The resolution to set.public ServiceEntry.Builder clearResolution()
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;private void ensureEndpointsIsMutable()
public java.util.List<ServiceEntry.Endpoint> getEndpointsList()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;getEndpointsList 在接口中 ServiceEntryOrBuilderpublic int getEndpointsCount()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;getEndpointsCount 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Endpoint getEndpoints(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;getEndpoints 在接口中 ServiceEntryOrBuilderpublic ServiceEntry.Builder setEndpoints(int index, ServiceEntry.Endpoint value)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder setEndpoints(int index, ServiceEntry.Endpoint.Builder builderForValue)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder addEndpoints(ServiceEntry.Endpoint value)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder addEndpoints(int index, ServiceEntry.Endpoint value)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder addEndpoints(ServiceEntry.Endpoint.Builder builderForValue)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder addEndpoints(int index, ServiceEntry.Endpoint.Builder builderForValue)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder addAllEndpoints(java.lang.Iterable<? extends ServiceEntry.Endpoint> values)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder clearEndpoints()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Builder removeEndpoints(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Endpoint.Builder getEndpointsBuilder(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.EndpointOrBuilder getEndpointsOrBuilder(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;getEndpointsOrBuilder 在接口中 ServiceEntryOrBuilderpublic java.util.List<? extends ServiceEntry.EndpointOrBuilder> getEndpointsOrBuilderList()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Endpoint.Builder addEndpointsBuilder()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public ServiceEntry.Endpoint.Builder addEndpointsBuilder(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;public java.util.List<ServiceEntry.Endpoint.Builder> getEndpointsBuilderList()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;private com.google.protobuf.RepeatedFieldBuilderV3<ServiceEntry.Endpoint,ServiceEntry.Endpoint.Builder,ServiceEntry.EndpointOrBuilder> getEndpointsFieldBuilder()
private void ensureExportToIsMutable()
public com.google.protobuf.ProtocolStringList getExportToList()
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;getExportToList 在接口中 ServiceEntryOrBuilderpublic int getExportToCount()
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;getExportToCount 在接口中 ServiceEntryOrBuilderpublic java.lang.String getExportTo(int index)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;getExportTo 在接口中 ServiceEntryOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExportToBytes(int index)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;getExportToBytes 在接口中 ServiceEntryOrBuilderindex - The index of the value to return.public ServiceEntry.Builder setExportTo(int index, java.lang.String value)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;index - The index to set the value at.value - The exportTo to set.public ServiceEntry.Builder addExportTo(java.lang.String value)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;value - The exportTo to add.public ServiceEntry.Builder addAllExportTo(java.lang.Iterable<java.lang.String> values)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;values - The exportTo to add.public ServiceEntry.Builder clearExportTo()
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;public ServiceEntry.Builder addExportToBytes(com.google.protobuf.ByteString value)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;value - The bytes of the exportTo to add.private void ensureSubjectAltNamesIsMutable()
public com.google.protobuf.ProtocolStringList getSubjectAltNamesList()
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;getSubjectAltNamesList 在接口中 ServiceEntryOrBuilderpublic int getSubjectAltNamesCount()
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;getSubjectAltNamesCount 在接口中 ServiceEntryOrBuilderpublic java.lang.String getSubjectAltNames(int index)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;getSubjectAltNames 在接口中 ServiceEntryOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSubjectAltNamesBytes(int index)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;getSubjectAltNamesBytes 在接口中 ServiceEntryOrBuilderindex - The index of the value to return.public ServiceEntry.Builder setSubjectAltNames(int index, java.lang.String value)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;index - The index to set the value at.value - The subjectAltNames to set.public ServiceEntry.Builder addSubjectAltNames(java.lang.String value)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;value - The subjectAltNames to add.public ServiceEntry.Builder addAllSubjectAltNames(java.lang.Iterable<java.lang.String> values)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;values - The subjectAltNames to add.public ServiceEntry.Builder clearSubjectAltNames()
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;public ServiceEntry.Builder addSubjectAltNamesBytes(com.google.protobuf.ByteString value)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;value - The bytes of the subjectAltNames to add.public final ServiceEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>public final ServiceEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Builder>Copyright © 2018–2020 Alibaba Group. All rights reserved.