Class ConfigChange (2.40.0)

public final class ConfigChange extends GeneratedMessageV3 implements ConfigChangeOrBuilder

Output generated from semantically comparing two versions of a service configuration.

Includes detailed information about a field that have changed with applicable advice about potential consequences for the change, such as backwards-incompatibility.

Protobuf type google.api.ConfigChange

Static Fields

ADVICES_FIELD_NUMBER

public static final int ADVICES_FIELD_NUMBER
Field Value
Type Description
int

CHANGE_TYPE_FIELD_NUMBER

public static final int CHANGE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ELEMENT_FIELD_NUMBER

public static final int ELEMENT_FIELD_NUMBER
Field Value
Type Description
int

NEW_VALUE_FIELD_NUMBER

public static final int NEW_VALUE_FIELD_NUMBER
Field Value
Type Description
int

OLD_VALUE_FIELD_NUMBER

public static final int OLD_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConfigChange getDefaultInstance()
Returns
Type Description
ConfigChange

getDescriptor()

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

newBuilder()

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

newBuilder(ConfigChange prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdvices(int index)

public Advice getAdvices(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
Advice

getAdvicesCount()

public int getAdvicesCount()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
int

getAdvicesList()

public List<Advice> getAdvicesList()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
List<Advice>

getAdvicesOrBuilder(int index)

public AdviceOrBuilder getAdvicesOrBuilder(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
AdviceOrBuilder

getAdvicesOrBuilderList()

public List<? extends AdviceOrBuilder> getAdvicesOrBuilderList()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
List<? extends com.google.api.AdviceOrBuilder>

getChangeType()

public ChangeType getChangeType()

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Returns
Type Description
ChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for changeType.

getDefaultInstanceForType()

public ConfigChange getDefaultInstanceForType()
Returns
Type Description
ConfigChange

getElement()

public String getElement()

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Returns
Type Description
String

The element.

getElementBytes()

public ByteString getElementBytes()

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Returns
Type Description
ByteString

The bytes for element.

getNewValue()

public String getNewValue()

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Returns
Type Description
String

The newValue.

getNewValueBytes()

public ByteString getNewValueBytes()

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Returns
Type Description
ByteString

The bytes for newValue.

getOldValue()

public String getOldValue()

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Returns
Type Description
String

The oldValue.

getOldValueBytes()

public ByteString getOldValueBytes()

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Returns
Type Description
ByteString

The bytes for oldValue.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 ConfigChange.Builder newBuilderForType()
Returns
Type Description
ConfigChange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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