Struct.internalGetFields
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.google.protobuf.Struct.internalGetFields(Showing top 15 results out of 315)

  • Common ways to obtain Struct
private void myMethod () {
Struct s =
  • Struct.getDefaultInstance()
  • Struct.Builder structBuilder;structBuilder.build()
  • AI code suggestions by Codota
}
origin: com.google.protobuf/protobuf-java

@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
origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Unordered map of dynamically typed values.
 * </pre>
 *
 * <code>map&lt;string, .google.protobuf.Value&gt; fields = 1;</code>
 */
public boolean containsFields(
  java.lang.String key) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 return internalGetFields().getMap().containsKey(key);
}
/**
origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Unordered map of dynamically typed values.
 * </pre>
 *
 * <code>map&lt;string, .google.protobuf.Value&gt; 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;
}
/**
origin: com.google.protobuf/protobuf-java

@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;
}
origin: com.google.protobuf/protobuf-java

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);
}
origin: com.google.protobuf/protobuf-java

public int getFieldsCount() {
 return internalGetFields().getMap().size();
}
/**
origin: com.google.protobuf/protobuf-java

@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;
}
origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Unordered map of dynamically typed values.
 * </pre>
 *
 * <code>map&lt;string, .google.protobuf.Value&gt; fields = 1;</code>
 */
public java.util.Map<java.lang.String, com.google.protobuf.Value> getFieldsMap() {
 return internalGetFields().getMap();
}
/**
origin: com.google.protobuf/protobuf-java

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);
}
origin: com.google.protobuf/protobuf-java

@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
origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Unordered map of dynamically typed values.
 * </pre>
 *
 * <code>map&lt;string, .google.protobuf.Value&gt; fields = 1;</code>
 */
public boolean containsFields(
  java.lang.String key) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 return internalGetFields().getMap().containsKey(key);
}
/**
origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Unordered map of dynamically typed values.
 * </pre>
 *
 * <code>map&lt;string, .google.protobuf.Value&gt; fields = 1;</code>
 */
public java.util.Map<java.lang.String, com.google.protobuf.Value> getFieldsMap() {
 return internalGetFields().getMap();
}
/**
origin: com.google.protobuf/protobuf-java

public int getFieldsCount() {
 return internalGetFields().getMap().size();
}
/**
origin: com.google.protobuf/protobuf-java

/**
 * <pre>
 * Unordered map of dynamically typed values.
 * </pre>
 *
 * <code>map&lt;string, .google.protobuf.Value&gt; 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;
}
/**
origin: com.google.protobuf/protobuf-java

@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;
}
com.google.protobufStructinternalGetFields

Popular methods of Struct

  • newBuilder
  • getDefaultInstance
  • equals
  • hashCode
  • parser
  • toBuilder
  • getFieldsMap
    Unordered map of dynamically typed values. map fields = 1;
  • getDescriptor
  • <init>
  • isInitialized
  • makeExtensionsImmutable
  • parseUnknownFieldProto3
  • makeExtensionsImmutable,
  • parseUnknownFieldProto3

Popular classes and methods

  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getApplicationContext (Context)
  • findViewById (Activity)
  • File (java.io)
    LocalStorage based File implementation for GWT. Should probably have used Harmony as a starting poin
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResultSet (java.sql)
    A table of data representing a database result set, which is usually generated by executing a statem
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)