Class CreateEnrollmentRequest (1.57.0)

public final class CreateEnrollmentRequest extends GeneratedMessageV3 implements CreateEnrollmentRequestOrBuilder

The request message for the CreateEnrollment method.

Protobuf type google.cloud.eventarc.v1.CreateEnrollmentRequest

Static Fields

ENROLLMENT_FIELD_NUMBER

public static final int ENROLLMENT_FIELD_NUMBER
Field Value
TypeDescription
int

ENROLLMENT_ID_FIELD_NUMBER

public static final int ENROLLMENT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateEnrollmentRequest getDefaultInstance()
Returns
TypeDescription
CreateEnrollmentRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateEnrollmentRequest.Builder newBuilder()
Returns
TypeDescription
CreateEnrollmentRequest.Builder

newBuilder(CreateEnrollmentRequest )

public static CreateEnrollmentRequest.Builder newBuilder(CreateEnrollmentRequest )
Parameter
NameDescription
CreateEnrollmentRequest
Returns
TypeDescription
CreateEnrollmentRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateEnrollmentRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateEnrollmentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateEnrollmentRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateEnrollmentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateEnrollmentRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateEnrollmentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateEnrollmentRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateEnrollmentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateEnrollmentRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateEnrollmentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateEnrollmentRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateEnrollmentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateEnrollmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateEnrollmentRequest> parser()
Returns
TypeDescription
Parser<CreateEnrollmentRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateEnrollmentRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateEnrollmentRequest

getEnrollment()

public Enrollment getEnrollment()

Required. The enrollment to create.

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

Returns
TypeDescription
Enrollment

The enrollment.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateEnrollmentRequest> getParserForType()
Returns
TypeDescription
Parser<CreateEnrollmentRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
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
TypeDescription
boolean

Whether the enrollment field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateEnrollmentRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateEnrollmentRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateEnrollmentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateEnrollmentRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateEnrollmentRequest.Builder toBuilder()
Returns
TypeDescription
CreateEnrollmentRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException