类 DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
istio.networking.v1alpha3.DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder,Cloneable
public static final class DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
implements DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder
Describes how traffic originating in the 'from' zone or sub-zone is
distributed over a set of 'to' zones. Syntax for specifying a zone is
{region}/{zone}/{sub-zone} and terminal wildcards are allowed on any
segment of the specification. Examples:
`*` - matches all localities
`us-west/*` - all zones and sub-zones within the us-west region
`us-west/zone-1/*` - all sub-zones within us-west/zone-1
Protobuf type istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Originating locality, '/' separated, e.g.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearTo()clone()booleancontainsTo(String key) Map of upstream localities to traffic distribution weights.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFrom()Originating locality, '/' separated, e.g.com.google.protobuf.ByteStringOriginating locality, '/' separated, e.g.已过时。getTo()已过时。intMap of upstream localities to traffic distribution weights.getToMap()Map of upstream localities to traffic distribution weights.intgetToOrDefault(String key, int defaultValue) Map of upstream localities to traffic distribution weights.intgetToOrThrow(String key) Map of upstream localities to traffic distribution weights.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Map of upstream localities to traffic distribution weights.Map of upstream localities to traffic distribution weights.Map of upstream localities to traffic distribution weights.Originating locality, '/' separated, e.g.setFromBytes(com.google.protobuf.ByteString value) Originating locality, '/' separated, e.g.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(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, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - 覆盖:
internalGetMapFieldReflection在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - 覆盖:
internalGetMutableMapFieldReflection在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.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<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
setField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
clearField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
clearOneof
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
setRepeatedField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
addRepeatedField
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder mergeFrom(com.google.protobuf.Message other) - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
mergeFrom
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>- 抛出:
IOException
-
getFrom
Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 指定者:
getFrom在接口中DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder- 返回:
- The from.
-
getFromBytes
public com.google.protobuf.ByteString getFromBytes()Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 指定者:
getFromBytes在接口中DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder- 返回:
- The bytes for from.
-
setFrom
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder setFrom(String value) Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 参数:
value- The from to set.- 返回:
- This builder for chaining.
-
clearFrom
Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 返回:
- This builder for chaining.
-
setFromBytes
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder setFromBytes(com.google.protobuf.ByteString value) Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 参数:
value- The bytes for from to set.- 返回:
- This builder for chaining.
-
getToCount
public int getToCount()Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
containsTo
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getTo
已过时。UsegetToMap()instead. -
getToMap
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getToOrDefault
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getToOrThrow
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
clearTo
-
removeTo
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder removeTo(String key) Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getMutableTo
已过时。Use alternate mutation accessors instead. -
putTo
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder putTo(String key, int value) Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
putAllTo
public DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder putAllTo(Map<String, Integer> values) Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
setUnknownFields
public final DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-
mergeUnknownFields
public final DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder>
-