类 WorkloadGroupOuterClass.WorkloadGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
istio.networking.v1alpha3.WorkloadGroupOuterClass.WorkloadGroup.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkloadGroupOuterClass.WorkloadGroupOrBuilder,Cloneable
public static final class WorkloadGroupOuterClass.WorkloadGroup.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
implements WorkloadGroupOuterClass.WorkloadGroupOrBuilder
`WorkloadGroup` enables specifying the properties of a single workload for bootstrap and provides a template for `WorkloadEntry`, similar to how `Deployment` specifies properties of workloads via `Pod` templates. A `WorkloadGroup` can have more than one `WorkloadEntry`. `WorkloadGroup` has no relationship to resources which control service registry like `ServiceEntry` and as such doesn't configure host name for these workloads. <!-- crd generation tags +cue-gen:WorkloadGroup:groupName:networking.istio.io +cue-gen:WorkloadGroup:version:v1alpha3 +cue-gen:WorkloadGroup:storageVersion +cue-gen:WorkloadGroup:subresource:status +cue-gen:WorkloadGroup:scope:Namespaced +cue-gen:WorkloadGroup:resource:categories=istio-io,networking-istio-io,shortNames=wg,plural=workloadgroups +cue-gen:WorkloadGroup: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:WorkloadGroup: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.WorkloadGroup-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Metadata that will be used for all corresponding `WorkloadEntries`.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMetadata that will be used for all corresponding `WorkloadEntries`.Metadata that will be used for all corresponding `WorkloadEntries`.Metadata that will be used for all corresponding `WorkloadEntries`.getProbe()`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.booleanMetadata that will be used for all corresponding `WorkloadEntries`.booleanhasProbe()`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.booleanTemplate to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metadata that will be used for all corresponding `WorkloadEntries`.`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Metadata that will be used for all corresponding `WorkloadEntries`.setMetadata(WorkloadGroupOuterClass.WorkloadGroup.ObjectMeta.Builder builderForValue) Metadata that will be used for all corresponding `WorkloadEntries`.`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.setProbe(WorkloadGroupOuterClass.ReadinessProbe.Builder builderForValue) `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.setTemplate(WorkloadEntryOuterClass.WorkloadEntry.Builder builderForValue) Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.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<WorkloadGroupOuterClass.WorkloadGroup.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<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
setField
public WorkloadGroupOuterClass.WorkloadGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
clearField
public WorkloadGroupOuterClass.WorkloadGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
clearOneof
public WorkloadGroupOuterClass.WorkloadGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
setRepeatedField
public WorkloadGroupOuterClass.WorkloadGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
addRepeatedField
public WorkloadGroupOuterClass.WorkloadGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
mergeFrom
public WorkloadGroupOuterClass.WorkloadGroup.Builder mergeFrom(WorkloadGroupOuterClass.WorkloadGroup other) -
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
mergeFrom
public WorkloadGroupOuterClass.WorkloadGroup.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<WorkloadGroupOuterClass.WorkloadGroup.Builder>- 抛出:
IOException
-
hasMetadata
public boolean hasMetadata()Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1;- 指定者:
hasMetadata在接口中WorkloadGroupOuterClass.WorkloadGroupOrBuilder- 返回:
- Whether the metadata field is set.
-
getMetadata
Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1;- 指定者:
getMetadata在接口中WorkloadGroupOuterClass.WorkloadGroupOrBuilder- 返回:
- The metadata.
-
setMetadata
public WorkloadGroupOuterClass.WorkloadGroup.Builder setMetadata(WorkloadGroupOuterClass.WorkloadGroup.ObjectMeta value) Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1; -
setMetadata
public WorkloadGroupOuterClass.WorkloadGroup.Builder setMetadata(WorkloadGroupOuterClass.WorkloadGroup.ObjectMeta.Builder builderForValue) Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1; -
mergeMetadata
public WorkloadGroupOuterClass.WorkloadGroup.Builder mergeMetadata(WorkloadGroupOuterClass.WorkloadGroup.ObjectMeta value) Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1; -
clearMetadata
Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1; -
getMetadataBuilder
Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1; -
getMetadataOrBuilder
Metadata that will be used for all corresponding `WorkloadEntries`. User labels for a workload group should be set here in `metadata` rather than in `template`.
.istio.networking.v1alpha3.WorkloadGroup.ObjectMeta metadata = 1; -
hasTemplate
public boolean hasTemplate()Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED];- 指定者:
hasTemplate在接口中WorkloadGroupOuterClass.WorkloadGroupOrBuilder- 返回:
- Whether the template field is set.
-
getTemplate
Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getTemplate在接口中WorkloadGroupOuterClass.WorkloadGroupOrBuilder- 返回:
- The template.
-
setTemplate
public WorkloadGroupOuterClass.WorkloadGroup.Builder setTemplate(WorkloadEntryOuterClass.WorkloadEntry value) Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED]; -
setTemplate
public WorkloadGroupOuterClass.WorkloadGroup.Builder setTemplate(WorkloadEntryOuterClass.WorkloadEntry.Builder builderForValue) Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeTemplate
public WorkloadGroupOuterClass.WorkloadGroup.Builder mergeTemplate(WorkloadEntryOuterClass.WorkloadEntry value) Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearTemplate
Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED]; -
getTemplateBuilder
Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED]; -
getTemplateOrBuilder
Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the specified service account's token. Workload entries in this group will be in the same namespace as the workload group, and inherit the labels and annotations from the above `metadata` field.
.istio.networking.v1alpha3.WorkloadEntry template = 2 [(.google.api.field_behavior) = REQUIRED]; -
hasProbe
public boolean hasProbe()`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3;- 指定者:
hasProbe在接口中WorkloadGroupOuterClass.WorkloadGroupOrBuilder- 返回:
- Whether the probe field is set.
-
getProbe
`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3;- 指定者:
getProbe在接口中WorkloadGroupOuterClass.WorkloadGroupOrBuilder- 返回:
- The probe.
-
setProbe
public WorkloadGroupOuterClass.WorkloadGroup.Builder setProbe(WorkloadGroupOuterClass.ReadinessProbe value) `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3; -
setProbe
public WorkloadGroupOuterClass.WorkloadGroup.Builder setProbe(WorkloadGroupOuterClass.ReadinessProbe.Builder builderForValue) `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3; -
mergeProbe
public WorkloadGroupOuterClass.WorkloadGroup.Builder mergeProbe(WorkloadGroupOuterClass.ReadinessProbe value) `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3; -
clearProbe
`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3; -
getProbeBuilder
`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3; -
getProbeOrBuilder
`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. This configuration mirrors K8S in both syntax and logic for the most part.
.istio.networking.v1alpha3.ReadinessProbe probe = 3; -
setUnknownFields
public final WorkloadGroupOuterClass.WorkloadGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-
mergeUnknownFields
public final WorkloadGroupOuterClass.WorkloadGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadGroupOuterClass.WorkloadGroup.Builder>
-