Class DnsThreatDetector.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DnsThreatDetector.Builder>
com.google.cloud.networksecurity.v1beta1.DnsThreatDetector.Builder
- All Implemented Interfaces:
DnsThreatDetectorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DnsThreatDetector
public static final class DnsThreatDetector.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DnsThreatDetector.Builder>
implements DnsThreatDetectorOrBuilder
A DNS threat detector sends DNS query logs to a _provider_ that then analyzes the logs to identify threat events in the DNS queries. By default, all VPC networks in your projects are included. You can exclude specific networks by supplying `excluded_networks`.Protobuf type
google.cloud.networksecurity.v1beta1.DnsThreatDetector-
Method Summary
Modifier and TypeMethodDescriptionaddAllExcludedNetworks(Iterable<String> values) Optional.addExcludedNetworks(String value) Optional.addExcludedNetworksBytes(com.google.protobuf.ByteString value) Optional.build()clear()Output only.Optional.Immutable.Required.Output only.booleancontainsLabels(String key) Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExcludedNetworks(int index) Optional.com.google.protobuf.ByteStringgetExcludedNetworksBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.Required.intRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(DnsThreatDetector other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setExcludedNetworks(int index, String value) Optional.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.Required.setProviderValue(int value) Required.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DnsThreatDetector.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DnsThreatDetector.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DnsThreatDetector.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<DnsThreatDetector.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<DnsThreatDetector.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<DnsThreatDetector.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DnsThreatDetector.Builder>
-
mergeFrom
public DnsThreatDetector.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<DnsThreatDetector.Builder>- Throws:
IOException
-
getName
Immutable. Identifier. Name of the DnsThreatDetector resource.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceDnsThreatDetectorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Immutable. Identifier. Name of the DnsThreatDetector resource.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceDnsThreatDetectorOrBuilder- Returns:
- The bytes for name.
-
setName
Immutable. Identifier. Name of the DnsThreatDetector resource.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Immutable. Identifier. Name of the DnsThreatDetector resource.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
Immutable. Identifier. Name of the DnsThreatDetector resource.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceDnsThreatDetectorOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceDnsThreatDetectorOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public DnsThreatDetector.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Create time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceDnsThreatDetectorOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceDnsThreatDetectorOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceDnsThreatDetectorOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public DnsThreatDetector.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Update time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceDnsThreatDetectorOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:DnsThreatDetectorOrBuilderOptional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceDnsThreatDetectorOrBuilder
-
containsLabels
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceDnsThreatDetectorOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceDnsThreatDetectorOrBuilder
-
getLabelsMap
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceDnsThreatDetectorOrBuilder
-
getLabelsOrDefault
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceDnsThreatDetectorOrBuilder
-
getLabelsOrThrow
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceDnsThreatDetectorOrBuilder
-
clearLabels
-
removeLabels
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Any labels associated with the DnsThreatDetector, listed as key value pairs.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getExcludedNetworksList
public com.google.protobuf.ProtocolStringList getExcludedNetworksList()Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getExcludedNetworksListin interfaceDnsThreatDetectorOrBuilder- Returns:
- A list containing the excludedNetworks.
-
getExcludedNetworksCount
public int getExcludedNetworksCount()Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getExcludedNetworksCountin interfaceDnsThreatDetectorOrBuilder- Returns:
- The count of excludedNetworks.
-
getExcludedNetworks
Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getExcludedNetworksin interfaceDnsThreatDetectorOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The excludedNetworks at the given index.
-
getExcludedNetworksBytes
public com.google.protobuf.ByteString getExcludedNetworksBytes(int index) Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getExcludedNetworksBytesin interfaceDnsThreatDetectorOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludedNetworks at the given index.
-
setExcludedNetworks
Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The excludedNetworks to set.- Returns:
- This builder for chaining.
-
addExcludedNetworks
Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The excludedNetworks to add.- Returns:
- This builder for chaining.
-
addAllExcludedNetworks
Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
values- The excludedNetworks to add.- Returns:
- This builder for chaining.
-
clearExcludedNetworks
Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addExcludedNetworksBytes
Optional. A list of network resource names which aren't monitored by this DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
repeated string excluded_networks = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the excludedNetworks to add.- Returns:
- This builder for chaining.
-
getProviderValue
public int getProviderValue()Required. The provider used for DNS threat analysis.
.google.cloud.networksecurity.v1beta1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProviderValuein interfaceDnsThreatDetectorOrBuilder- Returns:
- The enum numeric value on the wire for provider.
-
setProviderValue
Required. The provider used for DNS threat analysis.
.google.cloud.networksecurity.v1beta1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for provider to set.- Returns:
- This builder for chaining.
-
getProvider
Required. The provider used for DNS threat analysis.
.google.cloud.networksecurity.v1beta1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProviderin interfaceDnsThreatDetectorOrBuilder- Returns:
- The provider.
-
setProvider
Required. The provider used for DNS threat analysis.
.google.cloud.networksecurity.v1beta1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The provider to set.- Returns:
- This builder for chaining.
-
clearProvider
Required. The provider used for DNS threat analysis.
.google.cloud.networksecurity.v1beta1.DnsThreatDetector.Provider provider = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-