For IntelliJ IDEA and
Android Studio


private void myMethod () {Struct s =
Struct.getDefaultInstance()
Struct.Builder structBuilder;structBuilder.build()
- AI code suggestions by Codota
}
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
/** * <pre> * Unordered map of dynamically typed values. * </pre> * * <code>map<string, .google.protobuf.Value> fields = 1;</code> */ public boolean containsFields( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFields().getMap().containsKey(key); } /**
/** * <pre> * Unordered map of dynamically typed values. * </pre> * * <code>map<string, .google.protobuf.Value> fields = 1;</code> */ public com.google.protobuf.Value getFieldsOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetFields().getMap().isEmpty()) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFields().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); }
public int getFieldsCount() { return internalGetFields().getMap().size(); } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.Struct)) { return super.equals(obj); } com.google.protobuf.Struct other = (com.google.protobuf.Struct) obj; boolean result = true; result = result && internalGetFields().equals( other.internalGetFields()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * Unordered map of dynamically typed values. * </pre> * * <code>map<string, .google.protobuf.Value> fields = 1;</code> */ public java.util.Map<java.lang.String, com.google.protobuf.Value> getFieldsMap() { return internalGetFields().getMap(); } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetFields(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
/** * <pre> * Unordered map of dynamically typed values. * </pre> * * <code>map<string, .google.protobuf.Value> fields = 1;</code> */ public boolean containsFields( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFields().getMap().containsKey(key); } /**
/** * <pre> * Unordered map of dynamically typed values. * </pre> * * <code>map<string, .google.protobuf.Value> fields = 1;</code> */ public java.util.Map<java.lang.String, com.google.protobuf.Value> getFieldsMap() { return internalGetFields().getMap(); } /**
public int getFieldsCount() { return internalGetFields().getMap().size(); } /**
/** * <pre> * Unordered map of dynamically typed values. * </pre> * * <code>map<string, .google.protobuf.Value> fields = 1;</code> */ public com.google.protobuf.Value getFieldsOrDefault( java.lang.String key, com.google.protobuf.Value defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.Struct)) { return super.equals(obj); } com.google.protobuf.Struct other = (com.google.protobuf.Struct) obj; boolean result = true; result = result && internalGetFields().equals( other.internalGetFields()); result = result && unknownFields.equals(other.unknownFields); return result; }