@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /**
/** * * * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public java.util.Map<java.lang.String, com.google.datastore.v1.Value> getPropertiesMap() { return internalGetProperties().getMap(); } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); }
/** * * * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public boolean containsProperties(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetProperties().getMap().containsKey(key); } /** Use {@link #getPropertiesMap()} instead. */
/** * * * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public com.google.datastore.v1.Value getPropertiesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.datastore.v1.Value> map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * * * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public com.google.datastore.v1.Value getPropertiesOrDefault( java.lang.String key, com.google.datastore.v1.Value defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.datastore.v1.Value> map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKey()); } for (java.util.Map.Entry<java.lang.String, com.google.datastore.v1.Value> entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.datastore.v1.Value> properties__ = PropertiesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.datastore.v1.Entity)) { return super.equals(obj); } com.google.datastore.v1.Entity other = (com.google.datastore.v1.Entity) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && internalGetProperties().equals(other.internalGetProperties()); result = result && unknownFields.equals(other.unknownFields); return result; }
@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /**
public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /**
/** * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public java.util.Map<java.lang.String, com.google.datastore.v1.Value> getPropertiesMap() { return internalGetProperties().getMap(); } /**
/** * * * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public java.util.Map<java.lang.String, com.google.datastore.v1.Value> getPropertiesMap() { return internalGetProperties().getMap(); } /**
/** * <pre> * The entity's properties. * The map's keys are property names. * A property name matching regex `__.*__` is reserved. * A reserved property name is forbidden in certain documented contexts. * The name must not contain more than 500 characters. * The name cannot be `""`. * </pre> * * <code>map<string, .google.datastore.v1.Value> properties = 3;</code> */ public com.google.datastore.v1.Value getPropertiesOrDefault( java.lang.String key, com.google.datastore.v1.Value defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.datastore.v1.Value> map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (key_ != null) { output.writeMessage(1, getKey()); } for (java.util.Map.Entry<java.lang.String, com.google.datastore.v1.Value> entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.datastore.v1.Value> properties = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(3, properties); } }