Package com.google.cloud.retail.v2alpha
Class PinControlMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.Builder>
com.google.cloud.retail.v2alpha.PinControlMetadata.Builder
- All Implemented Interfaces:
PinControlMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PinControlMetadata
public static final class PinControlMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.Builder>
implements PinControlMetadataOrBuilder
Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins.Protobuf type
google.cloud.retail.v2alpha.PinControlMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()booleancontainsAllMatchedPins(long key) Map of all matched pins, keyed by pin position.booleancontainsDroppedPins(long key) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.Deprecated.intMap of all matched pins, keyed by pin position.Map of all matched pins, keyed by pin position.getAllMatchedPinsOrDefault(long key, PinControlMetadata.ProductPins defaultValue) Map of all matched pins, keyed by pin position.getAllMatchedPinsOrThrow(long key) Map of all matched pins, keyed by pin position.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intMap of pins that were dropped due to overlap with other matching pins, keyed by pin position.Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.getDroppedPinsOrDefault(long key, PinControlMetadata.ProductPins defaultValue) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.getDroppedPinsOrThrow(long key) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.Deprecated.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(PinControlMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Map of all matched pins, keyed by pin position.Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.putAllMatchedPins(long key, PinControlMetadata.ProductPins value) Map of all matched pins, keyed by pin position.putAllMatchedPinsBuilderIfAbsent(long key) Map of all matched pins, keyed by pin position.putDroppedPins(long key, PinControlMetadata.ProductPins value) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.putDroppedPinsBuilderIfAbsent(long key) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.removeAllMatchedPins(long key) Map of all matched pins, keyed by pin position.removeDroppedPins(long key) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.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.GeneratedMessage.Builder<PinControlMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PinControlMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PinControlMetadata.Builder>
-
mergeFrom
public PinControlMetadata.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<PinControlMetadata.Builder>- Throws:
IOException
-
getAllMatchedPinsCount
public int getAllMatchedPinsCount()Description copied from interface:PinControlMetadataOrBuilderMap of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1;- Specified by:
getAllMatchedPinsCountin interfacePinControlMetadataOrBuilder
-
containsAllMatchedPins
public boolean containsAllMatchedPins(long key) Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1;- Specified by:
containsAllMatchedPinsin interfacePinControlMetadataOrBuilder
-
getAllMatchedPins
Deprecated.UsegetAllMatchedPinsMap()instead.- Specified by:
getAllMatchedPinsin interfacePinControlMetadataOrBuilder
-
getAllMatchedPinsMap
Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1;- Specified by:
getAllMatchedPinsMapin interfacePinControlMetadataOrBuilder
-
getAllMatchedPinsOrDefault
public PinControlMetadata.ProductPins getAllMatchedPinsOrDefault(long key, PinControlMetadata.ProductPins defaultValue) Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1;- Specified by:
getAllMatchedPinsOrDefaultin interfacePinControlMetadataOrBuilder
-
getAllMatchedPinsOrThrow
Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1;- Specified by:
getAllMatchedPinsOrThrowin interfacePinControlMetadataOrBuilder
-
clearAllMatchedPins
-
removeAllMatchedPins
Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1; -
getMutableAllMatchedPins
Deprecated.Use alternate mutation accessors instead. -
putAllMatchedPins
Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1; -
putAllAllMatchedPins
public PinControlMetadata.Builder putAllAllMatchedPins(Map<Long, PinControlMetadata.ProductPins> values) Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1; -
putAllMatchedPinsBuilderIfAbsent
Map of all matched pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> all_matched_pins = 1; -
getDroppedPinsCount
public int getDroppedPinsCount()Description copied from interface:PinControlMetadataOrBuilderMap of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2;- Specified by:
getDroppedPinsCountin interfacePinControlMetadataOrBuilder
-
containsDroppedPins
public boolean containsDroppedPins(long key) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2;- Specified by:
containsDroppedPinsin interfacePinControlMetadataOrBuilder
-
getDroppedPins
Deprecated.UsegetDroppedPinsMap()instead.- Specified by:
getDroppedPinsin interfacePinControlMetadataOrBuilder
-
getDroppedPinsMap
Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2;- Specified by:
getDroppedPinsMapin interfacePinControlMetadataOrBuilder
-
getDroppedPinsOrDefault
public PinControlMetadata.ProductPins getDroppedPinsOrDefault(long key, PinControlMetadata.ProductPins defaultValue) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2;- Specified by:
getDroppedPinsOrDefaultin interfacePinControlMetadataOrBuilder
-
getDroppedPinsOrThrow
Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2;- Specified by:
getDroppedPinsOrThrowin interfacePinControlMetadataOrBuilder
-
clearDroppedPins
-
removeDroppedPins
Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2; -
getMutableDroppedPins
Deprecated.Use alternate mutation accessors instead. -
putDroppedPins
Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2; -
putAllDroppedPins
public PinControlMetadata.Builder putAllDroppedPins(Map<Long, PinControlMetadata.ProductPins> values) Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2; -
putDroppedPinsBuilderIfAbsent
Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
map<int64, .google.cloud.retail.v2alpha.PinControlMetadata.ProductPins> dropped_pins = 2;
-