Codota Logo
MapField.newMapField
Code IndexAdd Codota to your IDE (free)

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

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

Refine searchRefine arrow

  • MapField.copy
  • MapField.isMutable
  • Common ways to obtain MapField
private void myMethod () {
MapField m =
  • Codota IconMapEntry defaultEntry;MapField.newMapField(defaultEntry)
  • Codota IconMapEntry defaultEntry;MapField.emptyMapField(defaultEntry)
  • Smart code suggestions by Codota
}
origin: Graylog2/graylog2-server

private com.google.protobuf.MapField<java.lang.Integer, com.google.protobuf.ByteString>
internalGetMutableOptionTemplate() {
 onChanged();;
 if (optionTemplate_ == null) {
  optionTemplate_ = com.google.protobuf.MapField.newMapField(
    OptionTemplateDefaultEntryHolder.defaultEntry);
 }
 if (!optionTemplate_.isMutable()) {
  optionTemplate_ = optionTemplate_.copy();
 }
 return optionTemplate_;
}
origin: Graylog2/graylog2-server

private com.google.protobuf.MapField<java.lang.Integer, com.google.protobuf.ByteString>
internalGetMutableTemplates() {
 onChanged();;
 if (templates_ == null) {
  templates_ = com.google.protobuf.MapField.newMapField(
    TemplatesDefaultEntryHolder.defaultEntry);
 }
 if (!templates_.isMutable()) {
  templates_ = templates_.copy();
 }
 return templates_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableUsedBytesOnTiers() {
 onChanged();;
 if (usedBytesOnTiers_ == null) {
  usedBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    UsedBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!usedBytesOnTiers_.isMutable()) {
  usedBytesOnTiers_ = usedBytesOnTiers_.copy();
 }
 return usedBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableUsedBytesOnTiers() {
 onChanged();;
 if (usedBytesOnTiers_ == null) {
  usedBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    UsedBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!usedBytesOnTiers_.isMutable()) {
  usedBytesOnTiers_ = usedBytesOnTiers_.copy();
 }
 return usedBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableTotalBytesOnTiers() {
 onChanged();;
 if (totalBytesOnTiers_ == null) {
  totalBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    TotalBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!totalBytesOnTiers_.isMutable()) {
  totalBytesOnTiers_ = totalBytesOnTiers_.copy();
 }
 return totalBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableCapacityBytesOnTiers() {
 onChanged();;
 if (capacityBytesOnTiers_ == null) {
  capacityBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    CapacityBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!capacityBytesOnTiers_.isMutable()) {
  capacityBytesOnTiers_ = capacityBytesOnTiers_.copy();
 }
 return capacityBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.InconsistentProperties>
internalGetMutableErrors() {
 onChanged();;
 if (errors_ == null) {
  errors_ = com.google.protobuf.MapField.newMapField(
    ErrorsDefaultEntryHolder.defaultEntry);
 }
 if (!errors_.isMutable()) {
  errors_ = errors_.copy();
 }
 return errors_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.MetricValue>
internalGetMutableMetrics() {
 onChanged();;
 if (metrics_ == null) {
  metrics_ = com.google.protobuf.MapField.newMapField(
    MetricsDefaultEntryHolder.defaultEntry);
 }
 if (!metrics_.isMutable()) {
  metrics_ = metrics_.copy();
 }
 return metrics_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableTags() {
 onChanged();;
 if (tags_ == null) {
  tags_ = com.google.protobuf.MapField.newMapField(
    TagsDefaultEntryHolder.defaultEntry);
 }
 if (!tags_.isMutable()) {
  tags_ = tags_.copy();
 }
 return tags_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableCapacityBytesOnTiers() {
 onChanged();;
 if (capacityBytesOnTiers_ == null) {
  capacityBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    CapacityBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!capacityBytesOnTiers_.isMutable()) {
  capacityBytesOnTiers_ = capacityBytesOnTiers_.copy();
 }
 return capacityBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableUsedBytesOnTiers() {
 onChanged();;
 if (usedBytesOnTiers_ == null) {
  usedBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    UsedBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!usedBytesOnTiers_.isMutable()) {
  usedBytesOnTiers_ = usedBytesOnTiers_.copy();
 }
 return usedBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableCapacityBytesOnTiers() {
 onChanged();;
 if (capacityBytesOnTiers_ == null) {
  capacityBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    CapacityBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!capacityBytesOnTiers_.isMutable()) {
  capacityBytesOnTiers_ = capacityBytesOnTiers_.copy();
 }
 return capacityBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.InconsistentProperties>
internalGetMutableWarns() {
 onChanged();;
 if (warns_ == null) {
  warns_ = com.google.protobuf.MapField.newMapField(
    WarnsDefaultEntryHolder.defaultEntry);
 }
 if (!warns_.isMutable()) {
  warns_ = warns_.copy();
 }
 return warns_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableProperties() {
 onChanged();;
 if (properties_ == null) {
  properties_ = com.google.protobuf.MapField.newMapField(
    PropertiesDefaultEntryHolder.defaultEntry);
 }
 if (!properties_.isMutable()) {
  properties_ = properties_.copy();
 }
 return properties_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.MountPointInfo>
internalGetMutableMountPoints() {
 onChanged();;
 if (mountPoints_ == null) {
  mountPoints_ = com.google.protobuf.MapField.newMapField(
    MountPointsDefaultEntryHolder.defaultEntry);
 }
 if (!mountPoints_.isMutable()) {
  mountPoints_ = mountPoints_.copy();
 }
 return mountPoints_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableProperties() {
 onChanged();;
 if (properties_ == null) {
  properties_ = com.google.protobuf.MapField.newMapField(
    PropertiesDefaultEntryHolder.defaultEntry);
 }
 if (!properties_.isMutable()) {
  properties_ = properties_.copy();
 }
 return properties_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, java.lang.Long>
internalGetMutableUsedBytesOnTiers() {
 onChanged();;
 if (usedBytesOnTiers_ == null) {
  usedBytesOnTiers_ = com.google.protobuf.MapField.newMapField(
    UsedBytesOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!usedBytesOnTiers_.isMutable()) {
  usedBytesOnTiers_ = usedBytesOnTiers_.copy();
 }
 return usedBytesOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.TierList>
internalGetMutableAddedBlocksOnTiers() {
 onChanged();;
 if (addedBlocksOnTiers_ == null) {
  addedBlocksOnTiers_ = com.google.protobuf.MapField.newMapField(
    AddedBlocksOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!addedBlocksOnTiers_.isMutable()) {
  addedBlocksOnTiers_ = addedBlocksOnTiers_.copy();
 }
 return addedBlocksOnTiers_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.InconsistentPropertyValues>
internalGetMutableValues() {
 onChanged();;
 if (values_ == null) {
  values_ = com.google.protobuf.MapField.newMapField(
    ValuesDefaultEntryHolder.defaultEntry);
 }
 if (!values_.isMutable()) {
  values_ = values_.copy();
 }
 return values_;
}
origin: Alluxio/alluxio

private com.google.protobuf.MapField<java.lang.String, alluxio.grpc.TierList>
internalGetMutableCurrentBlocksOnTiers() {
 onChanged();;
 if (currentBlocksOnTiers_ == null) {
  currentBlocksOnTiers_ = com.google.protobuf.MapField.newMapField(
    CurrentBlocksOnTiersDefaultEntryHolder.defaultEntry);
 }
 if (!currentBlocksOnTiers_.isMutable()) {
  currentBlocksOnTiers_ = currentBlocksOnTiers_.copy();
 }
 return currentBlocksOnTiers_;
}
com.google.protobufMapFieldnewMapField

Javadoc

Creates a new mutable empty MapField.

Popular methods of MapField

  • getMap
    Returns the content of this MapField as a read-only Map.
  • 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
  • equals
  • hashCode
  • <init>
  • convertKeyAndValueToMessage
  • <init>,
  • convertKeyAndValueToMessage,
  • convertListToMap,
  • convertMapToList,
  • convertMessageToKeyAndValue,
  • getList,
  • getMapEntryMessageDefaultInstance,
  • getMutableList

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now