Package com.google.monitoring.v3
Class ListAlertPoliciesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesResponse.Builder>
com.google.monitoring.v3.ListAlertPoliciesResponse.Builder
- All Implemented Interfaces:
ListAlertPoliciesResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ListAlertPoliciesResponse
public static final class ListAlertPoliciesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesResponse.Builder>
implements ListAlertPoliciesResponseOrBuilder
The protocol for the `ListAlertPolicies` response.Protobuf type
google.monitoring.v3.ListAlertPoliciesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAlertPolicies(int index, AlertPolicy value) The returned alert policies.addAlertPolicies(int index, AlertPolicy.Builder builderForValue) The returned alert policies.addAlertPolicies(AlertPolicy value) The returned alert policies.addAlertPolicies(AlertPolicy.Builder builderForValue) The returned alert policies.The returned alert policies.addAlertPoliciesBuilder(int index) The returned alert policies.addAllAlertPolicies(Iterable<? extends AlertPolicy> values) The returned alert policies.build()clear()The returned alert policies.If there might be more results than were returned, then this field is set to a non-empty value.The total number of alert policies in all pages.getAlertPolicies(int index) The returned alert policies.getAlertPoliciesBuilder(int index) The returned alert policies.The returned alert policies.intThe returned alert policies.The returned alert policies.getAlertPoliciesOrBuilder(int index) The returned alert policies.List<? extends AlertPolicyOrBuilder>The returned alert policies.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf there might be more results than were returned, then this field is set to a non-empty value.com.google.protobuf.ByteStringIf there might be more results than were returned, then this field is set to a non-empty value.intThe total number of alert policies in all pages.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAlertPolicies(int index) The returned alert policies.setAlertPolicies(int index, AlertPolicy value) The returned alert policies.setAlertPolicies(int index, AlertPolicy.Builder builderForValue) The returned alert policies.setNextPageToken(String value) If there might be more results than were returned, then this field is set to a non-empty value.setNextPageTokenBytes(com.google.protobuf.ByteString value) If there might be more results than were returned, then this field is set to a non-empty value.setTotalSize(int value) The total number of alert policies in all pages.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<ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ListAlertPoliciesResponse.Builder>
-
mergeFrom
public ListAlertPoliciesResponse.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<ListAlertPoliciesResponse.Builder>- Throws:
IOException
-
getAlertPoliciesList
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;- Specified by:
getAlertPoliciesListin interfaceListAlertPoliciesResponseOrBuilder
-
getAlertPoliciesCount
public int getAlertPoliciesCount()The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;- Specified by:
getAlertPoliciesCountin interfaceListAlertPoliciesResponseOrBuilder
-
getAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;- Specified by:
getAlertPoliciesin interfaceListAlertPoliciesResponseOrBuilder
-
setAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
setAlertPolicies
public ListAlertPoliciesResponse.Builder setAlertPolicies(int index, AlertPolicy.Builder builderForValue) The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
addAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
addAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
addAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
addAlertPolicies
public ListAlertPoliciesResponse.Builder addAlertPolicies(int index, AlertPolicy.Builder builderForValue) The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
addAllAlertPolicies
public ListAlertPoliciesResponse.Builder addAllAlertPolicies(Iterable<? extends AlertPolicy> values) The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
clearAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
removeAlertPolicies
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
getAlertPoliciesBuilder
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
getAlertPoliciesOrBuilder
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;- Specified by:
getAlertPoliciesOrBuilderin interfaceListAlertPoliciesResponseOrBuilder
-
getAlertPoliciesOrBuilderList
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;- Specified by:
getAlertPoliciesOrBuilderListin interfaceListAlertPoliciesResponseOrBuilder
-
addAlertPoliciesBuilder
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
addAlertPoliciesBuilder
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
getAlertPoliciesBuilderList
The returned alert policies.
repeated .google.monitoring.v3.AlertPolicy alert_policies = 3; -
getNextPageToken
If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
string next_page_token = 2;- Specified by:
getNextPageTokenin interfaceListAlertPoliciesResponseOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
string next_page_token = 2;- Specified by:
getNextPageTokenBytesin interfaceListAlertPoliciesResponseOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
string next_page_token = 2;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
string next_page_token = 2;- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListAlertPoliciesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) If there might be more results than were returned, then this field is set to a non-empty value. To see the additional results, use that value as `page_token` in the next call to this method.
string next_page_token = 2;- Parameters:
value- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
getTotalSize
public int getTotalSize()The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158
int32 total_size = 4;- Specified by:
getTotalSizein interfaceListAlertPoliciesResponseOrBuilder- Returns:
- The totalSize.
-
setTotalSize
The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158
int32 total_size = 4;- Parameters:
value- The totalSize to set.- Returns:
- This builder for chaining.
-
clearTotalSize
The total number of alert policies in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158
int32 total_size = 4;- Returns:
- This builder for chaining.
-