public static final class PolicyControllerMonitoring.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllBackends(Iterable<? extends PolicyControllerMonitoring.MonitoringBackend> values)
public PolicyControllerMonitoring.Builder addAllBackends(Iterable<? extends PolicyControllerMonitoring.MonitoringBackend> 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;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring.MonitoringBackend>
The backends to add.
|
addAllBackendsValue(Iterable<Integer> values)
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;
Parameter |
Name |
Description |
values |
Iterable<Integer>
The enum numeric values on the wire for backends to add.
|
addBackends(PolicyControllerMonitoring.MonitoringBackend value)
public PolicyControllerMonitoring.Builder addBackends(PolicyControllerMonitoring.MonitoringBackend 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;
addBackendsValue(int value)
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;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for backends to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyControllerMonitoring.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PolicyControllerMonitoring build()
buildPartial()
public PolicyControllerMonitoring buildPartial()
clear()
public PolicyControllerMonitoring.Builder clear()
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public PolicyControllerMonitoring.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyControllerMonitoring.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public PolicyControllerMonitoring.Builder clone()
Overrides
getBackends(int index)
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;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
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;
Returns |
Type |
Description |
int |
The count of backends.
|
getBackendsList()
public List<PolicyControllerMonitoring.MonitoringBackend> 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;
getBackendsValue(int index)
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;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
int |
The enum numeric value on the wire of backends at the given index.
|
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;
Returns |
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for backends.
|
getDefaultInstanceForType()
public PolicyControllerMonitoring getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PolicyControllerMonitoring other)
public PolicyControllerMonitoring.Builder mergeFrom(PolicyControllerMonitoring other)
public PolicyControllerMonitoring.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PolicyControllerMonitoring.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyControllerMonitoring.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBackends(int index, PolicyControllerMonitoring.MonitoringBackend value)
public PolicyControllerMonitoring.Builder setBackends(int index, PolicyControllerMonitoring.MonitoringBackend 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;
setBackendsValue(int index, int value)
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 |
Name |
Description |
index |
int
The index to set the value at.
|
value |
int
The enum numeric value on the wire for backends to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyControllerMonitoring.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyControllerMonitoring.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyControllerMonitoring.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides