@SuppressWarnings({"rawtypes"}) @java.lang.Override 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(); } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.pubsub.v1.PushConfig)) { return super.equals(obj); } com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj; boolean result = true; result = result && getPushEndpoint().equals(other.getPushEndpoint()); result = result && internalGetAttributes().equals(other.internalGetAttributes()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Endpoint configuration attributes. * Every endpoint has a set of API supported attributes that can be used to * control different aspects of the message delivery. * The currently supported attribute is `x-goog-version`, which you can * use to change the format of the pushed message. This attribute * indicates the version of the data expected by the endpoint. This * controls the shape of the pushed message (i.e., its fields and metadata). * The endpoint version is based on the version of the Pub/Sub API. * If not present during the `CreateSubscription` call, it will default to * the version of the API used to make such call. If not present during a * `ModifyPushConfig` call, its value will not be changed. `GetSubscription` * calls will always return a valid version, even if the subscription was * created without this attribute. * The possible values for this attribute are: * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. * </pre> * * <code>map<string, string> attributes = 2;</code> */ public java.util.Map<java.lang.String, java.lang.String> getAttributesMap() { return internalGetAttributes().getMap(); } /**
throw new java.lang.NullPointerException(); return internalGetAttributes().getMap().containsKey(key);
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();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PUSH_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getPushEndpoint().hashCode(); if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
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;
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPushEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> attributes__ = AttributesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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); } } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
@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); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@SuppressWarnings({"rawtypes"}) @java.lang.Override 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(); } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.pubsub.v1.PushConfig)) { return super.equals(obj); } com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj; boolean result = true; result = result && getPushEndpoint().equals(other.getPushEndpoint()); result = result && internalGetAttributes().equals(other.internalGetAttributes()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.pubsub.v1.PushConfig)) { return super.equals(obj); } com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj; boolean result = true; result = result && getPushEndpoint() .equals(other.getPushEndpoint()); result = result && internalGetAttributes().equals( other.internalGetAttributes()); return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> attributes = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(2, attributes); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, pushEndpoint_); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> attributes = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(2, attributes); } }