Class MonitoringComponentConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder>
      • getDefaultInstanceForType

        public MonitoringComponentConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MonitoringComponentConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MonitoringComponentConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public MonitoringComponentConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder>
      • mergeFrom

        public MonitoringComponentConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MonitoringComponentConfig.Builder>
        Throws:
        IOException
      • getEnableComponentsCount

        public int getEnableComponentsCount()
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Specified by:
        getEnableComponentsCount in interface MonitoringComponentConfigOrBuilder
        Returns:
        The count of enableComponents.
      • getEnableComponents

        public MonitoringComponentConfig.Component getEnableComponents​(int index)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Specified by:
        getEnableComponents in interface MonitoringComponentConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The enableComponents at the given index.
      • setEnableComponents

        public MonitoringComponentConfig.Builder setEnableComponents​(int index,
                                                                     MonitoringComponentConfig.Component value)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Parameters:
        index - The index to set the value at.
        value - The enableComponents to set.
        Returns:
        This builder for chaining.
      • addEnableComponents

        public MonitoringComponentConfig.Builder addEnableComponents​(MonitoringComponentConfig.Component value)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Parameters:
        value - The enableComponents to add.
        Returns:
        This builder for chaining.
      • addAllEnableComponents

        public MonitoringComponentConfig.Builder addAllEnableComponents​(Iterable<? extends MonitoringComponentConfig.Component> values)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Parameters:
        values - The enableComponents to add.
        Returns:
        This builder for chaining.
      • clearEnableComponents

        public MonitoringComponentConfig.Builder clearEnableComponents()
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Returns:
        This builder for chaining.
      • getEnableComponentsValueList

        public List<Integer> getEnableComponentsValueList()
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Specified by:
        getEnableComponentsValueList in interface MonitoringComponentConfigOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for enableComponents.
      • getEnableComponentsValue

        public int getEnableComponentsValue​(int index)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Specified by:
        getEnableComponentsValue in interface MonitoringComponentConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of enableComponents at the given index.
      • setEnableComponentsValue

        public MonitoringComponentConfig.Builder setEnableComponentsValue​(int index,
                                                                          int value)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for enableComponents to set.
        Returns:
        This builder for chaining.
      • addEnableComponentsValue

        public MonitoringComponentConfig.Builder addEnableComponentsValue​(int value)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Parameters:
        value - The enum numeric value on the wire for enableComponents to add.
        Returns:
        This builder for chaining.
      • addAllEnableComponentsValue

        public MonitoringComponentConfig.Builder addAllEnableComponentsValue​(Iterable<Integer> values)
         Select components to collect metrics. An empty set would disable all
         monitoring.
         
        repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;
        Parameters:
        values - The enum numeric values on the wire for enableComponents to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MonitoringComponentConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder>
      • mergeUnknownFields

        public final MonitoringComponentConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder>