Package com.google.api
Class ConfigChange.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
- com.google.api.ConfigChange.Builder
-
- All Implemented Interfaces:
ConfigChangeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConfigChange
public static final class ConfigChange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder> 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 typegoogle.api.ConfigChange
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChange.BuilderaddAdvices(int index, Advice value)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuilderaddAdvices(int index, Advice.Builder builderForValue)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuilderaddAdvices(Advice value)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuilderaddAdvices(Advice.Builder builderForValue)Collection of advice provided for this change, useful for determining the possible impact of this change.Advice.BuilderaddAdvicesBuilder()Collection of advice provided for this change, useful for determining the possible impact of this change.Advice.BuilderaddAdvicesBuilder(int index)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuilderaddAllAdvices(Iterable<? extends Advice> values)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConfigChangebuild()ConfigChangebuildPartial()ConfigChange.Builderclear()ConfigChange.BuilderclearAdvices()Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuilderclearChangeType()The type for this change, either ADDED, REMOVED, or MODIFIED.ConfigChange.BuilderclearElement()Object hierarchy path to the change, with levels separated by a '.' character.ConfigChange.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ConfigChange.BuilderclearNewValue()Value of the changed object in the new Service configuration, in JSON format.ConfigChange.BuilderclearOldValue()Value of the changed object in the old Service configuration, in JSON format.ConfigChange.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ConfigChange.Builderclone()AdvicegetAdvices(int index)Collection of advice provided for this change, useful for determining the possible impact of this change.Advice.BuildergetAdvicesBuilder(int index)Collection of advice provided for this change, useful for determining the possible impact of this change.List<Advice.Builder>getAdvicesBuilderList()Collection of advice provided for this change, useful for determining the possible impact of this change.intgetAdvicesCount()Collection of advice provided for this change, useful for determining the possible impact of this change.List<Advice>getAdvicesList()Collection of advice provided for this change, useful for determining the possible impact of this change.AdviceOrBuildergetAdvicesOrBuilder(int index)Collection of advice provided for this change, useful for determining the possible impact of this change.List<? extends AdviceOrBuilder>getAdvicesOrBuilderList()Collection of advice provided for this change, useful for determining the possible impact of this change.ChangeTypegetChangeType()The type for this change, either ADDED, REMOVED, or MODIFIED.intgetChangeTypeValue()The type for this change, either ADDED, REMOVED, or MODIFIED.ConfigChangegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetElement()Object hierarchy path to the change, with levels separated by a '.' character.com.google.protobuf.ByteStringgetElementBytes()Object hierarchy path to the change, with levels separated by a '.' character.StringgetNewValue()Value of the changed object in the new Service configuration, in JSON format.com.google.protobuf.ByteStringgetNewValueBytes()Value of the changed object in the new Service configuration, in JSON format.StringgetOldValue()Value of the changed object in the old Service configuration, in JSON format.com.google.protobuf.ByteStringgetOldValueBytes()Value of the changed object in the old Service configuration, in JSON format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ConfigChange.BuildermergeFrom(ConfigChange other)ConfigChange.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ConfigChange.BuildermergeFrom(com.google.protobuf.Message other)ConfigChange.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ConfigChange.BuilderremoveAdvices(int index)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuildersetAdvices(int index, Advice value)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuildersetAdvices(int index, Advice.Builder builderForValue)Collection of advice provided for this change, useful for determining the possible impact of this change.ConfigChange.BuildersetChangeType(ChangeType value)The type for this change, either ADDED, REMOVED, or MODIFIED.ConfigChange.BuildersetChangeTypeValue(int value)The type for this change, either ADDED, REMOVED, or MODIFIED.ConfigChange.BuildersetElement(String value)Object hierarchy path to the change, with levels separated by a '.' character.ConfigChange.BuildersetElementBytes(com.google.protobuf.ByteString value)Object hierarchy path to the change, with levels separated by a '.' character.ConfigChange.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConfigChange.BuildersetNewValue(String value)Value of the changed object in the new Service configuration, in JSON format.ConfigChange.BuildersetNewValueBytes(com.google.protobuf.ByteString value)Value of the changed object in the new Service configuration, in JSON format.ConfigChange.BuildersetOldValue(String value)Value of the changed object in the old Service configuration, in JSON format.ConfigChange.BuildersetOldValueBytes(com.google.protobuf.ByteString value)Value of the changed object in the old Service configuration, in JSON format.ConfigChange.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ConfigChange.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
clear
public ConfigChange.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
getDefaultInstanceForType
public ConfigChange getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConfigChange build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConfigChange buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConfigChange.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
setField
public ConfigChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
clearField
public ConfigChange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
clearOneof
public ConfigChange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
setRepeatedField
public ConfigChange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
addRepeatedField
public ConfigChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
mergeFrom
public ConfigChange.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigChange.Builder>
-
mergeFrom
public ConfigChange.Builder mergeFrom(ConfigChange other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
mergeFrom
public ConfigChange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigChange.Builder>- Throws:
IOException
-
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;- Specified by:
getElementin interfaceConfigChangeOrBuilder- Returns:
- The element.
-
getElementBytes
public com.google.protobuf.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;- Specified by:
getElementBytesin interfaceConfigChangeOrBuilder- Returns:
- The bytes for element.
-
setElement
public ConfigChange.Builder setElement(String value)
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;- Parameters:
value- The element to set.- Returns:
- This builder for chaining.
-
clearElement
public ConfigChange.Builder clearElement()
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:
- This builder for chaining.
-
setElementBytes
public ConfigChange.Builder setElementBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for element to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getOldValuein interfaceConfigChangeOrBuilder- Returns:
- The oldValue.
-
getOldValueBytes
public com.google.protobuf.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;- Specified by:
getOldValueBytesin interfaceConfigChangeOrBuilder- Returns:
- The bytes for oldValue.
-
setOldValue
public ConfigChange.Builder setOldValue(String value)
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;- Parameters:
value- The oldValue to set.- Returns:
- This builder for chaining.
-
clearOldValue
public ConfigChange.Builder clearOldValue()
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:
- This builder for chaining.
-
setOldValueBytes
public ConfigChange.Builder setOldValueBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for oldValue to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getNewValuein interfaceConfigChangeOrBuilder- Returns:
- The newValue.
-
getNewValueBytes
public com.google.protobuf.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;- Specified by:
getNewValueBytesin interfaceConfigChangeOrBuilder- Returns:
- The bytes for newValue.
-
setNewValue
public ConfigChange.Builder setNewValue(String value)
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;- Parameters:
value- The newValue to set.- Returns:
- This builder for chaining.
-
clearNewValue
public ConfigChange.Builder clearNewValue()
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:
- This builder for chaining.
-
setNewValueBytes
public ConfigChange.Builder setNewValueBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for newValue to set.- Returns:
- This builder for chaining.
-
getChangeTypeValue
public int getChangeTypeValue()
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;- Specified by:
getChangeTypeValuein interfaceConfigChangeOrBuilder- Returns:
- The enum numeric value on the wire for changeType.
-
setChangeTypeValue
public ConfigChange.Builder setChangeTypeValue(int value)
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;- Parameters:
value- The enum numeric value on the wire for changeType to set.- Returns:
- This builder for chaining.
-
getChangeType
public ChangeType getChangeType()
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;- Specified by:
getChangeTypein interfaceConfigChangeOrBuilder- Returns:
- The changeType.
-
setChangeType
public ConfigChange.Builder setChangeType(ChangeType value)
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;- Parameters:
value- The changeType to set.- Returns:
- This builder for chaining.
-
clearChangeType
public ConfigChange.Builder clearChangeType()
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;- Returns:
- This builder for chaining.
-
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;- Specified by:
getAdvicesListin interfaceConfigChangeOrBuilder
-
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;- Specified by:
getAdvicesCountin interfaceConfigChangeOrBuilder
-
getAdvices
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;- Specified by:
getAdvicesin interfaceConfigChangeOrBuilder
-
setAdvices
public ConfigChange.Builder setAdvices(int index, Advice value)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
setAdvices
public ConfigChange.Builder setAdvices(int index, Advice.Builder builderForValue)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
public ConfigChange.Builder addAdvices(Advice value)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
public ConfigChange.Builder addAdvices(int index, Advice value)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
public ConfigChange.Builder addAdvices(Advice.Builder builderForValue)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
public ConfigChange.Builder addAdvices(int index, Advice.Builder builderForValue)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAllAdvices
public ConfigChange.Builder addAllAdvices(Iterable<? extends Advice> values)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
clearAdvices
public ConfigChange.Builder clearAdvices()
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
removeAdvices
public ConfigChange.Builder removeAdvices(int index)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
getAdvicesBuilder
public Advice.Builder getAdvicesBuilder(int index)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
getAdvicesOrBuilder
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;- Specified by:
getAdvicesOrBuilderin interfaceConfigChangeOrBuilder
-
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;- Specified by:
getAdvicesOrBuilderListin interfaceConfigChangeOrBuilder
-
addAdvicesBuilder
public Advice.Builder addAdvicesBuilder()
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvicesBuilder
public Advice.Builder addAdvicesBuilder(int index)
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
getAdvicesBuilderList
public List<Advice.Builder> getAdvicesBuilderList()
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
setUnknownFields
public final ConfigChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
mergeUnknownFields
public final ConfigChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
-