/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.lang.String getAttributesOrDefault( 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 = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.lang.String getAttributesOrDefault( 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 = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.data_ = data_; result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); result.messageId_ = messageId_; if (publishTimeBuilder_ == null) { result.publishTime_ = publishTime_; } else { result.publishTime_ = publishTimeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public boolean containsAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttributes().getMap().containsKey(key); } /** Use {@link #getAttributesMap()} instead. */
/** * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.lang.String getAttributesOrDefault( 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 = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttributes().getMap().containsKey(key); } /**
/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.util.Map<java.lang.String, java.lang.String> getAttributesMap() { return internalGetAttributes().getMap(); } /**
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"})
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"})
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /**
public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /**
/** * <code>map<string, string> attributes = 2;</code> * * <pre> * Optional attributes for this message. * </pre> */ public java.util.Map<java.lang.String, java.lang.String> getAttributes() { return internalGetAttributes().getMap(); } /**
/** * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.util.Map<java.lang.String, java.lang.String> getAttributesMap() { return internalGetAttributes().getMap(); } /**
@java.lang.Override public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.data_ = data_; result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); result.messageId_ = messageId_; if (publishTimeBuilder_ == null) { result.publishTime_ = publishTime_; } else { result.publishTime_ = publishTimeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public boolean containsAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttributes().getMap().containsKey(key); } /** Use {@link #getAttributesMap()} instead. */
/** * * * <pre> * Optional attributes for this message. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.util.Map<java.lang.String, java.lang.String> getAttributesMap() { return internalGetAttributes().getMap(); } /**
public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /**