All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.genie.proto.PongResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: genie.proto

package com.netflix.genie.proto;

/**
 * 
 * The server response with server metadata.
 * 
* * Protobuf type {@code com.netflix.genie.proto.PongResponse} */ public final class PongResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.netflix.genie.proto.PongResponse) PongResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PongResponse.newBuilder() to construct. private PongResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PongResponse() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PongResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PongResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); requestId_ = s; break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { serverMetadata_ = com.google.protobuf.MapField.newMapField( ServerMetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry serverMetadata__ = input.readMessage( ServerMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); serverMetadata_.getMutableMap().put( serverMetadata__.getKey(), serverMetadata__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_PongResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetServerMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_PongResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.netflix.genie.proto.PongResponse.class, com.netflix.genie.proto.PongResponse.Builder.class); } public static final int REQUEST_ID_FIELD_NUMBER = 1; private volatile java.lang.Object requestId_; /** * string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** * string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMESTAMP_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 2; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 2; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int SERVER_METADATA_FIELD_NUMBER = 3; private static final class ServerMetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_PongResponse_ServerMetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> serverMetadata_; private com.google.protobuf.MapField internalGetServerMetadata() { if (serverMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( ServerMetadataDefaultEntryHolder.defaultEntry); } return serverMetadata_; } public int getServerMetadataCount() { return internalGetServerMetadata().getMap().size(); } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public boolean containsServerMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetServerMetadata().getMap().containsKey(key); } /** * Use {@link #getServerMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getServerMetadata() { return getServerMetadataMap(); } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public java.util.Map getServerMetadataMap() { return internalGetServerMetadata().getMap(); } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public java.lang.String getServerMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetServerMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public java.lang.String getServerMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetServerMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getRequestIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); } if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetServerMetadata(), ServerMetadataDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } for (java.util.Map.Entry entry : internalGetServerMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry serverMetadata__ = ServerMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, serverMetadata__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.netflix.genie.proto.PongResponse)) { return super.equals(obj); } com.netflix.genie.proto.PongResponse other = (com.netflix.genie.proto.PongResponse) obj; if (!getRequestId() .equals(other.getRequestId())) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!internalGetServerMetadata().equals( other.internalGetServerMetadata())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } if (!internalGetServerMetadata().getMap().isEmpty()) { hash = (37 * hash) + SERVER_METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetServerMetadata().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.netflix.genie.proto.PongResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.netflix.genie.proto.PongResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.netflix.genie.proto.PongResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.netflix.genie.proto.PongResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.netflix.genie.proto.PongResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.netflix.genie.proto.PongResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.netflix.genie.proto.PongResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.netflix.genie.proto.PongResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.netflix.genie.proto.PongResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.netflix.genie.proto.PongResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.netflix.genie.proto.PongResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.netflix.genie.proto.PongResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.netflix.genie.proto.PongResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * The server response with server metadata.
   * 
* * Protobuf type {@code com.netflix.genie.proto.PongResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.netflix.genie.proto.PongResponse) com.netflix.genie.proto.PongResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_PongResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetServerMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableServerMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_PongResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.netflix.genie.proto.PongResponse.class, com.netflix.genie.proto.PongResponse.Builder.class); } // Construct using com.netflix.genie.proto.PongResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); requestId_ = ""; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } internalGetMutableServerMetadata().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_PongResponse_descriptor; } @java.lang.Override public com.netflix.genie.proto.PongResponse getDefaultInstanceForType() { return com.netflix.genie.proto.PongResponse.getDefaultInstance(); } @java.lang.Override public com.netflix.genie.proto.PongResponse build() { com.netflix.genie.proto.PongResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.netflix.genie.proto.PongResponse buildPartial() { com.netflix.genie.proto.PongResponse result = new com.netflix.genie.proto.PongResponse(this); int from_bitField0_ = bitField0_; result.requestId_ = requestId_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.serverMetadata_ = internalGetServerMetadata(); result.serverMetadata_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.netflix.genie.proto.PongResponse) { return mergeFrom((com.netflix.genie.proto.PongResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.netflix.genie.proto.PongResponse other) { if (other == com.netflix.genie.proto.PongResponse.getDefaultInstance()) return this; if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; onChanged(); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } internalGetMutableServerMetadata().mergeFrom( other.internalGetServerMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.netflix.genie.proto.PongResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.netflix.genie.proto.PongResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object requestId_ = ""; /** * string request_id = 1; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string request_id = 1; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string request_id = 1; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requestId_ = value; onChanged(); return this; } /** * string request_id = 1; * @return This builder for chaining. */ public Builder clearRequestId() { requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** * string request_id = 1; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 2; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 2; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 2; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 2; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 2; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 2; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 2; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> serverMetadata_; private com.google.protobuf.MapField internalGetServerMetadata() { if (serverMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( ServerMetadataDefaultEntryHolder.defaultEntry); } return serverMetadata_; } private com.google.protobuf.MapField internalGetMutableServerMetadata() { onChanged();; if (serverMetadata_ == null) { serverMetadata_ = com.google.protobuf.MapField.newMapField( ServerMetadataDefaultEntryHolder.defaultEntry); } if (!serverMetadata_.isMutable()) { serverMetadata_ = serverMetadata_.copy(); } return serverMetadata_; } public int getServerMetadataCount() { return internalGetServerMetadata().getMap().size(); } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public boolean containsServerMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetServerMetadata().getMap().containsKey(key); } /** * Use {@link #getServerMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getServerMetadata() { return getServerMetadataMap(); } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public java.util.Map getServerMetadataMap() { return internalGetServerMetadata().getMap(); } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public java.lang.String getServerMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetServerMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> server_metadata = 3; */ @java.lang.Override public java.lang.String getServerMetadataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetServerMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearServerMetadata() { internalGetMutableServerMetadata().getMutableMap() .clear(); return this; } /** * map<string, string> server_metadata = 3; */ public Builder removeServerMetadata( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableServerMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableServerMetadata() { return internalGetMutableServerMetadata().getMutableMap(); } /** * map<string, string> server_metadata = 3; */ public Builder putServerMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableServerMetadata().getMutableMap() .put(key, value); return this; } /** * map<string, string> server_metadata = 3; */ public Builder putAllServerMetadata( java.util.Map values) { internalGetMutableServerMetadata().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.netflix.genie.proto.PongResponse) } // @@protoc_insertion_point(class_scope:com.netflix.genie.proto.PongResponse) private static final com.netflix.genie.proto.PongResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.netflix.genie.proto.PongResponse(); } public static com.netflix.genie.proto.PongResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PongResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PongResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.netflix.genie.proto.PongResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy