Class ConfigChange (2.2.0)

public sealed class ConfigChange : Protobuf.IMessage<ConfigChange>, Protobuf.IBufferMessage

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.

Inheritance

Object > ConfigChange

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

ConfigChange()

public ConfigChange()

ConfigChange(ConfigChange)

public ConfigChange(ConfigChange other)
Parameter
NameDescription
otherConfigChange

Fields

AdvicesFieldNumber

public const int AdvicesFieldNumber = 5

Field number for the "advices" field.

Field Value
TypeDescription
Int32

ChangeTypeFieldNumber

public const int ChangeTypeFieldNumber = 4

Field number for the "change_type" field.

Field Value
TypeDescription
Int32

ElementFieldNumber

public const int ElementFieldNumber = 1

Field number for the "element" field.

Field Value
TypeDescription
Int32

NewValueFieldNumber

public const int NewValueFieldNumber = 3

Field number for the "new_value" field.

Field Value
TypeDescription
Int32

OldValueFieldNumber

public const int OldValueFieldNumber = 2

Field number for the "old_value" field.

Field Value
TypeDescription
Int32

Properties

Advices

public Protobuf.Collections.RepeatedField<Advice> Advices { get; }

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

Property Value
TypeDescription
Protobuf.Collections.RepeatedField<Advice>

ChangeType

public ChangeType ChangeType { get; set; }

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

Property Value
TypeDescription
ChangeType

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

Element

public string Element { get; set; }

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]
Property Value
TypeDescription
String

NewValue

public string NewValue { get; set; }

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

Property Value
TypeDescription
String

OldValue

public string OldValue { get; set; }

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

Property Value
TypeDescription
String

Parser

public static Protobuf.MessageParser<ConfigChange> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<ConfigChange>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public ConfigChange Clone()
Returns
TypeDescription
ConfigChange

Equals(ConfigChange)

public bool Equals(ConfigChange other)
Parameter
NameDescription
otherConfigChange
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(ConfigChange)

public void MergeFrom(ConfigChange other)
Parameter
NameDescription
otherConfigChange

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
NameDescription
inputProtobuf.CodedInputStream

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
NameDescription
outputProtobuf.CodedOutputStream