Class CreateNotificationConfigRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
- com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder
-
- All Implemented Interfaces:
CreateNotificationConfigRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CreateNotificationConfigRequest
public static final class CreateNotificationConfigRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder> implements CreateNotificationConfigRequestOrBuilder
Request message for creating a notification config.
Protobuf typegoogle.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
clear
public CreateNotificationConfigRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.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.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
getDefaultInstanceForType
public CreateNotificationConfigRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateNotificationConfigRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateNotificationConfigRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateNotificationConfigRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
setField
public CreateNotificationConfigRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
clearField
public CreateNotificationConfigRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
clearOneof
public CreateNotificationConfigRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
setRepeatedField
public CreateNotificationConfigRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
addRepeatedField
public CreateNotificationConfigRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
mergeFrom
public CreateNotificationConfigRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateNotificationConfigRequest.Builder>
-
mergeFrom
public CreateNotificationConfigRequest.Builder mergeFrom(CreateNotificationConfigRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
mergeFrom
public CreateNotificationConfigRequest.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<CreateNotificationConfigRequest.Builder>- Throws:
IOException
-
getParent
public String getParent()
Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceCreateNotificationConfigRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceCreateNotificationConfigRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
public CreateNotificationConfigRequest.Builder setParent(String value)
Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public CreateNotificationConfigRequest.Builder clearParent()
Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
public CreateNotificationConfigRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. Resource name of the new notification config's parent. Its format is "organizations/[organization_id]".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getConfigId
public String getConfigId()
Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.
string config_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getConfigIdin interfaceCreateNotificationConfigRequestOrBuilder- Returns:
- The configId.
-
getConfigIdBytes
public com.google.protobuf.ByteString getConfigIdBytes()
Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.
string config_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getConfigIdBytesin interfaceCreateNotificationConfigRequestOrBuilder- Returns:
- The bytes for configId.
-
setConfigId
public CreateNotificationConfigRequest.Builder setConfigId(String value)
Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.
string config_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The configId to set.- Returns:
- This builder for chaining.
-
clearConfigId
public CreateNotificationConfigRequest.Builder clearConfigId()
Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.
string config_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setConfigIdBytes
public CreateNotificationConfigRequest.Builder setConfigIdBytes(com.google.protobuf.ByteString value)
Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters, and contains alphanumeric characters, underscores or hyphens only.
string config_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for configId to set.- Returns:
- This builder for chaining.
-
hasNotificationConfig
public boolean hasNotificationConfig()
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasNotificationConfigin interfaceCreateNotificationConfigRequestOrBuilder- Returns:
- Whether the notificationConfig field is set.
-
getNotificationConfig
public NotificationConfig getNotificationConfig()
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNotificationConfigin interfaceCreateNotificationConfigRequestOrBuilder- Returns:
- The notificationConfig.
-
setNotificationConfig
public CreateNotificationConfigRequest.Builder setNotificationConfig(NotificationConfig value)
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
-
setNotificationConfig
public CreateNotificationConfigRequest.Builder setNotificationConfig(NotificationConfig.Builder builderForValue)
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
-
mergeNotificationConfig
public CreateNotificationConfigRequest.Builder mergeNotificationConfig(NotificationConfig value)
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
-
clearNotificationConfig
public CreateNotificationConfigRequest.Builder clearNotificationConfig()
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
-
getNotificationConfigBuilder
public NotificationConfig.Builder getNotificationConfigBuilder()
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
-
getNotificationConfigOrBuilder
public NotificationConfigOrBuilder getNotificationConfigOrBuilder()
Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNotificationConfigOrBuilderin interfaceCreateNotificationConfigRequestOrBuilder
-
setUnknownFields
public final CreateNotificationConfigRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
mergeUnknownFields
public final CreateNotificationConfigRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNotificationConfigRequest.Builder>
-
-