类 DestinationRuleOuterClass.DestinationRule

  • 所有已实现的接口:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DestinationRuleOuterClass.DestinationRuleOrBuilder, java.io.Serializable
    封闭类:
    DestinationRuleOuterClass

    public static final class DestinationRuleOuterClass.DestinationRule
    extends com.google.protobuf.GeneratedMessageV3
    implements DestinationRuleOuterClass.DestinationRuleOrBuilder
     DestinationRule defines policies that apply to traffic intended for a service
     after routing has occurred.
     <!-- crd generation tags
     +cue-gen:DestinationRule:groupName:networking.istio.io
     +cue-gen:DestinationRule:version:v1alpha3
     +cue-gen:DestinationRule:storageVersion
     +cue-gen:DestinationRule:annotations:helm.sh/resource-policy=keep
     +cue-gen:DestinationRule:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio
     +cue-gen:DestinationRule:subresource:status
     +cue-gen:DestinationRule:scope:Namespaced
     +cue-gen:DestinationRule:resource:categories=istio-io,networking-istio-io,shortNames=dr
     +cue-gen:DestinationRule:printerColumn:name=Host,type=string,JSONPath=.spec.host,description="The name of a service from the service registry"
     +cue-gen:DestinationRule:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp 
     representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. 
     Clients may not set this value. It is represented in RFC3339 form and is in UTC.
     Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
     +cue-gen:DestinationRule:preserveUnknownFields:false
     -->
     <!-- go code generation tags
     +kubetype-gen
     +kubetype-gen:groupVersion=networking.istio.io/v1alpha3
     +genclient
     +k8s:deepcopy-gen=true
     -->
     
    Protobuf type istio.networking.v1alpha3.DestinationRule
    另请参阅:
    序列化表格
    • 构造器详细资料

      • DestinationRule

        private DestinationRule​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • DestinationRule

        private DestinationRule()
    • 方法详细资料

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • getHost

        public java.lang.String getHost()
         The name of a service from the service registry. Service
         names are looked up from the platform's service registry (e.g.,
         Kubernetes services, Consul services, etc.) and from the hosts
         declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for
         services that do not exist in the service registry will be ignored.
         *Note for Kubernetes users*: When short names are used (e.g. "reviews"
         instead of "reviews.default.svc.cluster.local"), Istio will interpret
         the short name based on the namespace of the rule, not the service. A
         rule in the "default" namespace containing a host "reviews" will be
         interpreted as "reviews.default.svc.cluster.local", irrespective of
         the actual namespace associated with the reviews service. _To avoid
         potential misconfigurations, it is recommended to always use fully
         qualified domain names over short names._
         Note that the host field applies to both HTTP and TCP services.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getHost 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        返回:
        The host.
      • getHostBytes

        public com.google.protobuf.ByteString getHostBytes()
         The name of a service from the service registry. Service
         names are looked up from the platform's service registry (e.g.,
         Kubernetes services, Consul services, etc.) and from the hosts
         declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for
         services that do not exist in the service registry will be ignored.
         *Note for Kubernetes users*: When short names are used (e.g. "reviews"
         instead of "reviews.default.svc.cluster.local"), Istio will interpret
         the short name based on the namespace of the rule, not the service. A
         rule in the "default" namespace containing a host "reviews" will be
         interpreted as "reviews.default.svc.cluster.local", irrespective of
         the actual namespace associated with the reviews service. _To avoid
         potential misconfigurations, it is recommended to always use fully
         qualified domain names over short names._
         Note that the host field applies to both HTTP and TCP services.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getHostBytes 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        返回:
        The bytes for host.
      • hasTrafficPolicy

        public boolean hasTrafficPolicy()
         Traffic policies to apply (load balancing policy, connection pool
         sizes, outlier detection).
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;
        指定者:
        hasTrafficPolicy 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        返回:
        Whether the trafficPolicy field is set.
      • getExportToList

        public com.google.protobuf.ProtocolStringList getExportToList()
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        指定者:
        getExportToList 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        返回:
        A list containing the exportTo.
      • getExportToCount

        public int getExportToCount()
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        指定者:
        getExportToCount 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        返回:
        The count of exportTo.
      • getExportTo

        public java.lang.String getExportTo​(int index)
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        指定者:
        getExportTo 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The exportTo at the given index.
      • getExportToBytes

        public com.google.protobuf.ByteString getExportToBytes​(int index)
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        指定者:
        getExportToBytes 在接口中 DestinationRuleOuterClass.DestinationRuleOrBuilder
        参数:
        index - The index of the value to return.
        返回:
        The bytes of the exportTo at the given index.
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(java.nio.ByteBuffer data)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(java.nio.ByteBuffer data,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(com.google.protobuf.ByteString data)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(com.google.protobuf.ByteString data,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(byte[] data)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(byte[] data,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(java.io.InputStream input,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws java.io.IOException
        抛出:
        java.io.IOException
      • parseDelimitedFrom

        public static DestinationRuleOuterClass.DestinationRule parseDelimitedFrom​(java.io.InputStream input,
                                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                            throws java.io.IOException
        抛出:
        java.io.IOException
      • parseFrom

        public static DestinationRuleOuterClass.DestinationRule parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                   throws java.io.IOException
        抛出:
        java.io.IOException
      • newBuilderForType

        public DestinationRuleOuterClass.DestinationRule.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • getParserForType

        public com.google.protobuf.Parser<DestinationRuleOuterClass.DestinationRule> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DestinationRuleOuterClass.DestinationRule getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder