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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ConfigChange.Builder newBuilder()
newBuilder(ConfigChange prototype)
public static ConfigChange.Builder newBuilder(ConfigChange prototype)
public static ConfigChange parseDelimitedFrom(InputStream input)
public static ConfigChange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ConfigChange parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ConfigChange parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(CodedInputStream input)
public static ConfigChange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(InputStream input)
public static ConfigChange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ConfigChange parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ConfigChange> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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;
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
|
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()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ConfigChange.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConfigChange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ConfigChange.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides