Class PolicyControllerMonitoring.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyControllerMonitoring.Builder>
com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.Builder
All Implemented Interfaces:
PolicyControllerMonitoringOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyControllerMonitoring

public static final class PolicyControllerMonitoring.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyControllerMonitoring.Builder> implements PolicyControllerMonitoringOrBuilder
 PolicyControllerMonitoring specifies the backends Policy Controller should
 export metrics to. For example, to specify metrics should be exported to
 Cloud Monitoring and Prometheus, specify
 backends: ["cloudmonitoring", "prometheus"]
 
Protobuf type google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PolicyControllerMonitoring.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PolicyControllerMonitoring.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.GeneratedMessage.Builder<PolicyControllerMonitoring.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public PolicyControllerMonitoring.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyControllerMonitoring.Builder>
    • mergeFrom

    • isInitialized

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

      public PolicyControllerMonitoring.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<PolicyControllerMonitoring.Builder>
      Throws:
      IOException
    • getBackendsList

       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Specified by:
      getBackendsList in interface PolicyControllerMonitoringOrBuilder
      Returns:
      A list containing the backends.
    • getBackendsCount

      public int getBackendsCount()
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Specified by:
      getBackendsCount in interface PolicyControllerMonitoringOrBuilder
      Returns:
      The count of backends.
    • getBackends

      public PolicyControllerMonitoring.MonitoringBackend getBackends(int index)
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Specified by:
      getBackends in interface PolicyControllerMonitoringOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The backends at the given index.
    • setBackends

       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Parameters:
      index - The index to set the value at.
      value - The backends to set.
      Returns:
      This builder for chaining.
    • addBackends

       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Parameters:
      value - The backends to add.
      Returns:
      This builder for chaining.
    • addAllBackends

       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Parameters:
      values - The backends to add.
      Returns:
      This builder for chaining.
    • clearBackends

      public PolicyControllerMonitoring.Builder clearBackends()
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Returns:
      This builder for chaining.
    • getBackendsValueList

      public List<Integer> getBackendsValueList()
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Specified by:
      getBackendsValueList in interface PolicyControllerMonitoringOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for backends.
    • getBackendsValue

      public int getBackendsValue(int index)
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Specified by:
      getBackendsValue in interface PolicyControllerMonitoringOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of backends at the given index.
    • setBackendsValue

      public PolicyControllerMonitoring.Builder setBackendsValue(int index, int value)
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for backends to set.
      Returns:
      This builder for chaining.
    • addBackendsValue

      public PolicyControllerMonitoring.Builder addBackendsValue(int value)
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Parameters:
      value - The enum numeric value on the wire for backends to add.
      Returns:
      This builder for chaining.
    • addAllBackendsValue

      public PolicyControllerMonitoring.Builder addAllBackendsValue(Iterable<Integer> values)
       Specifies the list of backends Policy Controller will export to.
       An empty list would effectively disable metrics export.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend backends = 1;
      Parameters:
      values - The enum numeric values on the wire for backends to add.
      Returns:
      This builder for chaining.