Class ResourceEnrollmentStatus (0.3.0)

public final class ResourceEnrollmentStatus extends GeneratedMessage implements ResourceEnrollmentStatusOrBuilder

A resource with its enrollment status.

Protobuf type google.cloud.auditmanager.v1.ResourceEnrollmentStatus

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ENROLLED_FIELD_NUMBER

public static final int ENROLLED_FIELD_NUMBER
Field Value
Type Description
int

ENROLLMENT_FIELD_NUMBER

public static final int ENROLLMENT_FIELD_NUMBER
Field Value
Type Description
int

ENROLLMENT_STATE_FIELD_NUMBER

public static final int ENROLLMENT_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceEnrollmentStatus getDefaultInstance()
Returns
Type Description
ResourceEnrollmentStatus

getDescriptor()

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

newBuilder()

public static ResourceEnrollmentStatus.Builder newBuilder()
Returns
Type Description
ResourceEnrollmentStatus.Builder

newBuilder(ResourceEnrollmentStatus prototype)

public static ResourceEnrollmentStatus.Builder newBuilder(ResourceEnrollmentStatus prototype)
Parameter
Name Description
prototype ResourceEnrollmentStatus
Returns
Type Description
ResourceEnrollmentStatus.Builder

parseDelimitedFrom(InputStream input)

public static ResourceEnrollmentStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceEnrollmentStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResourceEnrollmentStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceEnrollmentStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceEnrollmentStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceEnrollmentStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceEnrollmentStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceEnrollmentStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResourceEnrollmentStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceEnrollmentStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResourceEnrollmentStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceEnrollmentStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceEnrollmentStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResourceEnrollmentStatus> parser()
Returns
Type Description
Parser<ResourceEnrollmentStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ResourceEnrollmentStatus getDefaultInstanceForType()
Returns
Type Description
ResourceEnrollmentStatus

getDisplayName()

public String getDisplayName()

Output only. Display name of the project/folder/organization.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. Display name of the project/folder/organization.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getEnrolled() (deprecated)

public boolean getEnrolled()

Deprecated. google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See google/cloud/auditmanager/v1/auditmanager.proto;l=595

Output only. Is resource enrolled.

bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The enrolled.

getEnrollment()

public Enrollment getEnrollment()

Output only. Enrollment which contains enrolled destination details for a resource

.google.cloud.auditmanager.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Enrollment

The enrollment.

getEnrollmentOrBuilder()

public EnrollmentOrBuilder getEnrollmentOrBuilder()

Output only. Enrollment which contains enrolled destination details for a resource

.google.cloud.auditmanager.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EnrollmentOrBuilder

getEnrollmentState()

public ResourceEnrollmentStatus.ResourceEnrollmentState getEnrollmentState()

Output only. Enrollment state of the resource.

.google.cloud.auditmanager.v1.ResourceEnrollmentStatus.ResourceEnrollmentState enrollment_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceEnrollmentStatus.ResourceEnrollmentState

The enrollmentState.

getEnrollmentStateValue()

public int getEnrollmentStateValue()

Output only. Enrollment state of the resource.

.google.cloud.auditmanager.v1.ResourceEnrollmentStatus.ResourceEnrollmentState enrollment_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for enrollmentState.

getName()

public String getName()

Identifier. The name of this resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of this resource.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ResourceEnrollmentStatus> getParserForType()
Returns
Type Description
Parser<ResourceEnrollmentStatus>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEnrollment()

public boolean hasEnrollment()

Output only. Enrollment which contains enrolled destination details for a resource

.google.cloud.auditmanager.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the enrollment field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ResourceEnrollmentStatus.Builder newBuilderForType()
Returns
Type Description
ResourceEnrollmentStatus.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ResourceEnrollmentStatus.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourceEnrollmentStatus.Builder
Overrides

toBuilder()

public ResourceEnrollmentStatus.Builder toBuilder()
Returns
Type Description
ResourceEnrollmentStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException