congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MapField.getMap
Code IndexAdd Tabnine to your IDE (free)

How to use
getMap
method
in
com.google.protobuf.MapField

Best Java code snippets using com.google.protobuf.MapField.getMap (Showing top 20 results out of 909)

Refine searchRefine arrow

  • Map.containsKey
  • Map.get
  • Map.size
  • MapEntry.Builder.setKey
  • MapEntry.Builder.setValue
  • MapEntry.newBuilderForType
  • MapEntry.Builder.build
  • Map.Entry.getKey
  • Map.Entry.getValue
origin: Graylog2/graylog2-server

/**
 * <pre>
 * there is only one option template, but we need to know its template id, so a map is the easiest way to find it
 * </pre>
 *
 * <code>map&lt;uint32, bytes&gt; optionTemplate = 2;</code>
 */
public boolean containsOptionTemplate(
  int key) {
 
 return internalGetOptionTemplate().getMap().containsKey(key);
}
/**
origin: Alluxio/alluxio

/**
 * <code>map&lt;string, string&gt; properties = 6;</code>
 */
public java.lang.String getPropertiesOrDefault(
  java.lang.String key,
  java.lang.String defaultValue) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 java.util.Map<java.lang.String, java.lang.String> map =
   internalGetProperties().getMap();
 return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
origin: Graylog2/graylog2-server

public int getOptionTemplateCount() {
 return internalGetOptionTemplate().getMap().size();
}
/**
origin: Alluxio/alluxio

public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 for (java.util.Map.Entry<java.lang.String, alluxio.grpc.MetricValue> entry
    : internalGetMetrics().getMap().entrySet()) {
  com.google.protobuf.MapEntry<java.lang.String, alluxio.grpc.MetricValue>
  metrics__ = MetricsDefaultEntryHolder.defaultEntry.newBuilderForType()
    .setKey(entry.getKey())
    .setValue(entry.getValue())
    .build();
  size += com.google.protobuf.CodedOutputStream
    .computeMessageSize(1, metrics__);
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: Alluxio/alluxio

/**
 * <code>map&lt;string, int64&gt; capacityBytesOnTiers = 2;</code>
 */
public long getCapacityBytesOnTiersOrDefault(
  java.lang.String key,
  long defaultValue) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 java.util.Map<java.lang.String, java.lang.Long> map =
   internalGetCapacityBytesOnTiers().getMap();
 return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
origin: Graylog2/graylog2-server

public int getTemplatesCount() {
 return internalGetTemplates().getMap().size();
}
/**
origin: Graylog2/graylog2-server

/**
 * <pre>
 * all applicable templates that are referenced by the packets
 * </pre>
 *
 * <code>map&lt;uint32, bytes&gt; templates = 1;</code>
 */
public boolean containsTemplates(
  int key) {
 
 return internalGetTemplates().getMap().containsKey(key);
}
/**
origin: Alluxio/alluxio

public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 for (int i = 0; i < metrics_.size(); i++) {
  size += com.google.protobuf.CodedOutputStream
   .computeMessageSize(1, metrics_.get(i));
 }
 for (java.util.Map.Entry<java.lang.String, java.lang.Long> entry
    : internalGetCapacityBytesOnTiers().getMap().entrySet()) {
  com.google.protobuf.MapEntry<java.lang.String, java.lang.Long>
  capacityBytesOnTiers__ = CapacityBytesOnTiersDefaultEntryHolder.defaultEntry.newBuilderForType()
    .setKey(entry.getKey())
    .setValue(entry.getValue())
    .build();
  size += com.google.protobuf.CodedOutputStream
    .computeMessageSize(2, capacityBytesOnTiers__);
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: Alluxio/alluxio

/**
 * <code>map&lt;string, .alluxio.grpc.meta.MetricValue&gt; metrics = 1;</code>
 */
public alluxio.grpc.MetricValue getMetricsOrDefault(
  java.lang.String key,
  alluxio.grpc.MetricValue defaultValue) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 java.util.Map<java.lang.String, alluxio.grpc.MetricValue> map =
   internalGetMetrics().getMap();
 return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
origin: Graylog2/graylog2-server

public int getOptionTemplateCount() {
 return internalGetOptionTemplate().getMap().size();
}
/**
origin: Graylog2/graylog2-server

/**
 * <pre>
 * there is only one option template, but we need to know its template id, so a map is the easiest way to find it
 * </pre>
 *
 * <code>map&lt;uint32, bytes&gt; optionTemplate = 2;</code>
 */
public boolean containsOptionTemplate(
  int key) {
 
 return internalGetOptionTemplate().getMap().containsKey(key);
}
/**
origin: Alluxio/alluxio

public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 for (java.util.Map.Entry<java.lang.String, alluxio.grpc.MountPointInfo> entry
    : internalGetMountPoints().getMap().entrySet()) {
  com.google.protobuf.MapEntry<java.lang.String, alluxio.grpc.MountPointInfo>
  mountPoints__ = MountPointsDefaultEntryHolder.defaultEntry.newBuilderForType()
    .setKey(entry.getKey())
    .setValue(entry.getValue())
    .build();
  size += com.google.protobuf.CodedOutputStream
    .computeMessageSize(1, mountPoints__);
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: Alluxio/alluxio

/**
 * <code>map&lt;string, .alluxio.grpc.file.MountPointInfo&gt; mountPoints = 1;</code>
 */
public alluxio.grpc.MountPointInfo getMountPointsOrDefault(
  java.lang.String key,
  alluxio.grpc.MountPointInfo defaultValue) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 java.util.Map<java.lang.String, alluxio.grpc.MountPointInfo> map =
   internalGetMountPoints().getMap();
 return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
origin: Graylog2/graylog2-server

public int getTemplatesCount() {
 return internalGetTemplates().getMap().size();
}
/**
origin: Graylog2/graylog2-server

/**
 * <pre>
 * all applicable templates that are referenced by the packets
 * </pre>
 *
 * <code>map&lt;uint32, bytes&gt; templates = 1;</code>
 */
public boolean containsTemplates(
  int key) {
 
 return internalGetTemplates().getMap().containsKey(key);
}
/**
origin: Alluxio/alluxio

public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
 }
 for (java.util.Map.Entry<java.lang.String, alluxio.grpc.InconsistentPropertyValues> entry
    : internalGetValues().getMap().entrySet()) {
  com.google.protobuf.MapEntry<java.lang.String, alluxio.grpc.InconsistentPropertyValues>
  values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
    .setKey(entry.getKey())
    .setValue(entry.getValue())
    .build();
  size += com.google.protobuf.CodedOutputStream
    .computeMessageSize(2, values__);
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: Alluxio/alluxio

/**
 * <code>map&lt;string, int64&gt; capacityBytesOnTiers = 2;</code>
 */
public long getCapacityBytesOnTiersOrDefault(
  java.lang.String key,
  long defaultValue) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 java.util.Map<java.lang.String, java.lang.Long> map =
   internalGetCapacityBytesOnTiers().getMap();
 return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
origin: Alluxio/alluxio

public int getCapacityBytesOnTiersCount() {
 return internalGetCapacityBytesOnTiers().getMap().size();
}
/**
origin: Alluxio/alluxio

/**
 * <code>map&lt;string, int64&gt; usedBytesOnTiers = 9;</code>
 */
public boolean containsUsedBytesOnTiers(
  java.lang.String key) {
 if (key == null) { throw new java.lang.NullPointerException(); }
 return internalGetUsedBytesOnTiers().getMap().containsKey(key);
}
/**
origin: Graylog2/graylog2-server

public void writeTo(com.google.protobuf.CodedOutputStream output)
          throws java.io.IOException {
 for (java.util.Map.Entry<java.lang.Integer, com.google.protobuf.ByteString> entry
    : internalGetTemplates().getMap().entrySet()) {
  com.google.protobuf.MapEntry<java.lang.Integer, com.google.protobuf.ByteString>
  templates = TemplatesDefaultEntryHolder.defaultEntry.newBuilderForType()
    .setKey(entry.getKey())
    .setValue(entry.getValue())
    .build();
  output.writeMessage(1, templates);
 }
 for (java.util.Map.Entry<java.lang.Integer, com.google.protobuf.ByteString> entry
    : internalGetOptionTemplate().getMap().entrySet()) {
  com.google.protobuf.MapEntry<java.lang.Integer, com.google.protobuf.ByteString>
  optionTemplate = OptionTemplateDefaultEntryHolder.defaultEntry.newBuilderForType()
    .setKey(entry.getKey())
    .setValue(entry.getValue())
    .build();
  output.writeMessage(2, optionTemplate);
 }
 for (int i = 0; i < packets_.size(); i++) {
  output.writeBytes(3, packets_.get(i));
 }
 unknownFields.writeTo(output);
}
com.google.protobufMapFieldgetMap

Javadoc

Returns the content of this MapField as a read-only Map.

Popular methods of MapField

  • getMutableMap
    Gets a mutable Map view of this MapField.
  • isMutable
    Returns whether this field can be modified.
  • clear
  • copy
    Returns a deep copy of this MapField.
  • emptyMapField
    Returns an immutable empty MapField.
  • makeImmutable
    Makes this list immutable. All subsequent modifications will throw an UnsupportedOperationException.
  • mergeFrom
  • newMapField
    Creates a new mutable empty MapField.
  • equals
  • hashCode
  • <init>
  • convertKeyAndValueToMessage
  • <init>,
  • convertKeyAndValueToMessage,
  • convertListToMap,
  • convertMapToList,
  • convertMessageToKeyAndValue,
  • getList,
  • getMapEntryMessageDefaultInstance,
  • getMutableList

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • String (java.lang)
  • Path (java.nio.file)
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now