Class ResourceChange (0.45.0)

public final class ResourceChange extends GeneratedMessageV3 implements ResourceChangeOrBuilder

A resource change represents a change to a resource in the state file.

Protobuf type google.cloud.config.v1.ResourceChange

Static Fields

INTENT_FIELD_NUMBER

public static final int INTENT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PROPERTY_CHANGES_FIELD_NUMBER

public static final int PROPERTY_CHANGES_FIELD_NUMBER
Field Value
Type Description
int

TERRAFORM_INFO_FIELD_NUMBER

public static final int TERRAFORM_INFO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceChange getDefaultInstance()
Returns
Type Description
ResourceChange

getDescriptor()

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

newBuilder()

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

newBuilder(ResourceChange prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ResourceChange getDefaultInstanceForType()
Returns
Type Description
ResourceChange

getIntent()

public ResourceChange.Intent getIntent()

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceChange.Intent

The intent.

getIntentValue()

public int getIntentValue()

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for intent.

getName()

public String getName()

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getPropertyChanges(int index)

public PropertyChange getPropertyChanges(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyChange

getPropertyChangesCount()

public int getPropertyChangesCount()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPropertyChangesList()

public List<PropertyChange> getPropertyChangesList()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PropertyChange>

getPropertyChangesOrBuilder(int index)

public PropertyChangeOrBuilder getPropertyChangesOrBuilder(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyChangeOrBuilder

getPropertyChangesOrBuilderList()

public List<? extends PropertyChangeOrBuilder> getPropertyChangesOrBuilderList()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.config.v1.PropertyChangeOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTerraformInfo()

public ResourceChangeTerraformInfo getTerraformInfo()

Output only. Terraform info of the resource change.

.google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceChangeTerraformInfo

The terraformInfo.

getTerraformInfoOrBuilder()

public ResourceChangeTerraformInfoOrBuilder getTerraformInfoOrBuilder()

Output only. Terraform info of the resource change.

.google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceChangeTerraformInfoOrBuilder

hasTerraformInfo()

public boolean hasTerraformInfo()

Output only. Terraform info of the resource change.

.google.cloud.config.v1.ResourceChangeTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the terraformInfo field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceChange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourceChange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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