Class MaintenancePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
com.google.cloud.edgecontainer.v1.MaintenancePolicy.Builder
- All Implemented Interfaces:
MaintenancePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MaintenancePolicy
public static final class MaintenancePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
implements MaintenancePolicyOrBuilder
Maintenance policy configuration.Protobuf type
google.cloud.edgecontainer.v1.MaintenancePolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllMaintenanceExclusions(Iterable<? extends MaintenanceExclusionWindow> values) Optional.addMaintenanceExclusions(int index, MaintenanceExclusionWindow value) Optional.addMaintenanceExclusions(int index, MaintenanceExclusionWindow.Builder builderForValue) Optional.Optional.addMaintenanceExclusions(MaintenanceExclusionWindow.Builder builderForValue) Optional.Optional.addMaintenanceExclusionsBuilder(int index) Optional.build()clear()Optional.Specifies the maintenance window in which maintenance may be performed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMaintenanceExclusions(int index) Optional.getMaintenanceExclusionsBuilder(int index) Optional.Optional.intOptional.Optional.getMaintenanceExclusionsOrBuilder(int index) Optional.List<? extends MaintenanceExclusionWindowOrBuilder>Optional.Specifies the maintenance window in which maintenance may be performed.Specifies the maintenance window in which maintenance may be performed.Specifies the maintenance window in which maintenance may be performed.booleanSpecifies the maintenance window in which maintenance may be performed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MaintenancePolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeWindow(MaintenanceWindow value) Specifies the maintenance window in which maintenance may be performed.removeMaintenanceExclusions(int index) Optional.setMaintenanceExclusions(int index, MaintenanceExclusionWindow value) Optional.setMaintenanceExclusions(int index, MaintenanceExclusionWindow.Builder builderForValue) Optional.setWindow(MaintenanceWindow value) Specifies the maintenance window in which maintenance may be performed.setWindow(MaintenanceWindow.Builder builderForValue) Specifies the maintenance window in which maintenance may be performed.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.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.GeneratedMessage.Builder<MaintenancePolicy.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MaintenancePolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MaintenancePolicy.Builder>
-
mergeFrom
public MaintenancePolicy.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<MaintenancePolicy.Builder>- Throws:
IOException
-
hasWindow
public boolean hasWindow()Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1;- Specified by:
hasWindowin interfaceMaintenancePolicyOrBuilder- Returns:
- Whether the window field is set.
-
getWindow
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1;- Specified by:
getWindowin interfaceMaintenancePolicyOrBuilder- Returns:
- The window.
-
setWindow
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1; -
setWindow
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1; -
mergeWindow
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1; -
clearWindow
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1; -
getWindowBuilder
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1; -
getWindowOrBuilder
Specifies the maintenance window in which maintenance may be performed.
.google.cloud.edgecontainer.v1.MaintenanceWindow window = 1;- Specified by:
getWindowOrBuilderin interfaceMaintenancePolicyOrBuilder
-
getMaintenanceExclusionsList
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceExclusionsListin interfaceMaintenancePolicyOrBuilder
-
getMaintenanceExclusionsCount
public int getMaintenanceExclusionsCount()Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceExclusionsCountin interfaceMaintenancePolicyOrBuilder
-
getMaintenanceExclusions
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceExclusionsin interfaceMaintenancePolicyOrBuilder
-
setMaintenanceExclusions
public MaintenancePolicy.Builder setMaintenanceExclusions(int index, MaintenanceExclusionWindow value) Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setMaintenanceExclusions
public MaintenancePolicy.Builder setMaintenanceExclusions(int index, MaintenanceExclusionWindow.Builder builderForValue) Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMaintenanceExclusions
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMaintenanceExclusions
public MaintenancePolicy.Builder addMaintenanceExclusions(int index, MaintenanceExclusionWindow value) Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMaintenanceExclusions
public MaintenancePolicy.Builder addMaintenanceExclusions(MaintenanceExclusionWindow.Builder builderForValue) Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMaintenanceExclusions
public MaintenancePolicy.Builder addMaintenanceExclusions(int index, MaintenanceExclusionWindow.Builder builderForValue) Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllMaintenanceExclusions
public MaintenancePolicy.Builder addAllMaintenanceExclusions(Iterable<? extends MaintenanceExclusionWindow> values) Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearMaintenanceExclusions
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeMaintenanceExclusions
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMaintenanceExclusionsBuilder
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMaintenanceExclusionsOrBuilder
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceExclusionsOrBuilderin interfaceMaintenancePolicyOrBuilder
-
getMaintenanceExclusionsOrBuilderList
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaintenanceExclusionsOrBuilderListin interfaceMaintenancePolicyOrBuilder
-
addMaintenanceExclusionsBuilder
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMaintenanceExclusionsBuilder
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMaintenanceExclusionsBuilderList
Optional. Exclusions to automatic maintenance. Non-emergency maintenance should not occur in these windows. Each exclusion has a unique name and may be active or expired. The max number of maintenance exclusions allowed at a given time is 3.
repeated .google.cloud.edgecontainer.v1.MaintenanceExclusionWindow maintenance_exclusions = 2 [(.google.api.field_behavior) = OPTIONAL];
-