Class CreateEnrollmentRequest.Builder (1.55.0)

public static final class CreateEnrollmentRequest.Builder extends GeneratedMessageV3.Builder<CreateEnrollmentRequest.Builder> implements CreateEnrollmentRequestOrBuilder

The request message for the CreateEnrollment method.

Protobuf type google.cloud.eventarc.v1.CreateEnrollmentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateEnrollmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

build()

public CreateEnrollmentRequest build()
Returns
Type Description
CreateEnrollmentRequest

buildPartial()

public CreateEnrollmentRequest buildPartial()
Returns
Type Description
CreateEnrollmentRequest

clear()

public CreateEnrollmentRequest.Builder clear()
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

clearEnrollment()

public CreateEnrollmentRequest.Builder clearEnrollment()

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEnrollmentRequest.Builder

clearEnrollmentId()

public CreateEnrollmentRequest.Builder clearEnrollmentId()

Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).

string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateEnrollmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateEnrollmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

clearParent()

public CreateEnrollmentRequest.Builder clearParent()

Required. The parent collection in which to add this enrollment.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateEnrollmentRequest.Builder clearValidateOnly()

Optional. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

clone()

public CreateEnrollmentRequest.Builder clone()
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateEnrollmentRequest getDefaultInstanceForType()
Returns
Type Description
CreateEnrollmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnrollment()

public Enrollment getEnrollment()

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Enrollment

The enrollment.

getEnrollmentBuilder()

public Enrollment.Builder getEnrollmentBuilder()

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Enrollment.Builder

getEnrollmentId()

public String getEnrollmentId()

Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).

string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The enrollmentId.

getEnrollmentIdBytes()

public ByteString getEnrollmentIdBytes()

Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).

string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for enrollmentId.

getEnrollmentOrBuilder()

public EnrollmentOrBuilder getEnrollmentOrBuilder()

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EnrollmentOrBuilder

getParent()

public String getParent()

Required. The parent collection in which to add this enrollment.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent collection in which to add this enrollment.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasEnrollment()

public boolean hasEnrollment()

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the enrollment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEnrollment(Enrollment value)

public CreateEnrollmentRequest.Builder mergeEnrollment(Enrollment value)

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Enrollment
Returns
Type Description
CreateEnrollmentRequest.Builder

mergeFrom(CreateEnrollmentRequest other)

public CreateEnrollmentRequest.Builder mergeFrom(CreateEnrollmentRequest other)
Parameter
Name Description
other CreateEnrollmentRequest
Returns
Type Description
CreateEnrollmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateEnrollmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateEnrollmentRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateEnrollmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

setEnrollment(Enrollment value)

public CreateEnrollmentRequest.Builder setEnrollment(Enrollment value)

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Enrollment
Returns
Type Description
CreateEnrollmentRequest.Builder

setEnrollment(Enrollment.Builder builderForValue)

public CreateEnrollmentRequest.Builder setEnrollment(Enrollment.Builder builderForValue)

Required. The enrollment to create.

.google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Enrollment.Builder
Returns
Type Description
CreateEnrollmentRequest.Builder

setEnrollmentId(String value)

public CreateEnrollmentRequest.Builder setEnrollmentId(String value)

Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).

string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The enrollmentId to set.

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

setEnrollmentIdBytes(ByteString value)

public CreateEnrollmentRequest.Builder setEnrollmentIdBytes(ByteString value)

Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).

string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for enrollmentId to set.

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateEnrollmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

setParent(String value)

public CreateEnrollmentRequest.Builder setParent(String value)

Required. The parent collection in which to add this enrollment.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEnrollmentRequest.Builder setParentBytes(ByteString value)

Required. The parent collection in which to add this enrollment.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateEnrollmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateEnrollmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateEnrollmentRequest.Builder
Overrides

setValidateOnly(boolean value)

public CreateEnrollmentRequest.Builder setValidateOnly(boolean value)

Optional. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateEnrollmentRequest.Builder

This builder for chaining.