Class ProfileActionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProfileActionConfigOrBuilder,Cloneable
- Enclosing class:
- ProfileActionConfig
public static final class ProfileActionConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
implements ProfileActionConfigOrBuilder
Configuration for the profile watchdog action.Protobuf type
envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Limits the max number of profiles that can be generated by this action over its lifetime to avoid filling the disk.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) How long the profile should last.File path to the directory to output profiles.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongLimits the max number of profiles that can be generated by this action over its lifetime to avoid filling the disk.com.google.protobuf.DurationHow long the profile should last.com.google.protobuf.Duration.BuilderHow long the profile should last.com.google.protobuf.DurationOrBuilderHow long the profile should last.File path to the directory to output profiles.com.google.protobuf.ByteStringFile path to the directory to output profiles.booleanHow long the profile should last.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ProfileActionConfig other) mergeProfileDuration(com.google.protobuf.Duration value) How long the profile should last.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMaxProfiles(long value) Limits the max number of profiles that can be generated by this action over its lifetime to avoid filling the disk.setProfileDuration(com.google.protobuf.Duration value) How long the profile should last.setProfileDuration(com.google.protobuf.Duration.Builder builderForValue) How long the profile should last.setProfilePath(String value) File path to the directory to output profiles.setProfilePathBytes(com.google.protobuf.ByteString value) File path to the directory to output profiles.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
setField
public ProfileActionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
clearField
public ProfileActionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
clearOneof
public ProfileActionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
setRepeatedField
public ProfileActionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
addRepeatedField
public ProfileActionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProfileActionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
mergeFrom
public ProfileActionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProfileActionConfig.Builder>- Throws:
IOException
-
hasProfileDuration
public boolean hasProfileDuration()How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1;- Specified by:
hasProfileDurationin interfaceProfileActionConfigOrBuilder- Returns:
- Whether the profileDuration field is set.
-
getProfileDuration
public com.google.protobuf.Duration getProfileDuration()How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1;- Specified by:
getProfileDurationin interfaceProfileActionConfigOrBuilder- Returns:
- The profileDuration.
-
setProfileDuration
How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1; -
setProfileDuration
public ProfileActionConfig.Builder setProfileDuration(com.google.protobuf.Duration.Builder builderForValue) How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1; -
mergeProfileDuration
How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1; -
clearProfileDuration
How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1; -
getProfileDurationBuilder
public com.google.protobuf.Duration.Builder getProfileDurationBuilder()How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1; -
getProfileDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getProfileDurationOrBuilder()How long the profile should last. If not set defaults to 5 seconds.
.google.protobuf.Duration profile_duration = 1;- Specified by:
getProfileDurationOrBuilderin interfaceProfileActionConfigOrBuilder
-
getProfilePath
File path to the directory to output profiles.
string profile_path = 2 [(.validate.rules) = { ... }- Specified by:
getProfilePathin interfaceProfileActionConfigOrBuilder- Returns:
- The profilePath.
-
getProfilePathBytes
public com.google.protobuf.ByteString getProfilePathBytes()File path to the directory to output profiles.
string profile_path = 2 [(.validate.rules) = { ... }- Specified by:
getProfilePathBytesin interfaceProfileActionConfigOrBuilder- Returns:
- The bytes for profilePath.
-
setProfilePath
File path to the directory to output profiles.
string profile_path = 2 [(.validate.rules) = { ... }- Parameters:
value- The profilePath to set.- Returns:
- This builder for chaining.
-
clearProfilePath
File path to the directory to output profiles.
string profile_path = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setProfilePathBytes
File path to the directory to output profiles.
string profile_path = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for profilePath to set.- Returns:
- This builder for chaining.
-
getMaxProfiles
public long getMaxProfiles()Limits the max number of profiles that can be generated by this action over its lifetime to avoid filling the disk. If not set (i.e. it's 0), a default of 10 will be used.
uint64 max_profiles = 3;- Specified by:
getMaxProfilesin interfaceProfileActionConfigOrBuilder- Returns:
- The maxProfiles.
-
setMaxProfiles
Limits the max number of profiles that can be generated by this action over its lifetime to avoid filling the disk. If not set (i.e. it's 0), a default of 10 will be used.
uint64 max_profiles = 3;- Parameters:
value- The maxProfiles to set.- Returns:
- This builder for chaining.
-
clearMaxProfiles
Limits the max number of profiles that can be generated by this action over its lifetime to avoid filling the disk. If not set (i.e. it's 0), a default of 10 will be used.
uint64 max_profiles = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ProfileActionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-
mergeUnknownFields
public final ProfileActionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileActionConfig.Builder>
-