Skip to content

Commit

Permalink
Re-run codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Sep 30, 2024
1 parent 28e8b89 commit 162a364
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import javax.annotation.Generated;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -263,4 +264,23 @@ public CleanupRepositoryRequest build() {
false,
CleanupRepositoryResponse._DESERIALIZER
);

public int hashCode() {
int result = 17;
result = 31 * result + Objects.hashCode(this.clusterManagerTimeout);
result = 31 * result + Objects.hashCode(this.masterTimeout);
result = 31 * result + this.repository.hashCode();
result = 31 * result + Objects.hashCode(this.timeout);
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
CleanupRepositoryRequest other = (CleanupRepositoryRequest) o;
return Objects.equals(this.clusterManagerTimeout, other.clusterManagerTimeout)
&& Objects.equals(this.masterTimeout, other.masterTimeout)
&& Objects.equals(this.repository, other.repository)
&& Objects.equals(this.timeout, other.timeout);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
package org.opensearch.client.opensearch.snapshot;

import jakarta.json.stream.JsonGenerator;
import java.util.Objects;
import java.util.function.Function;
import javax.annotation.Generated;
import org.opensearch.client.json.JsonpDeserializable;
Expand Down Expand Up @@ -138,4 +139,17 @@ public CleanupRepositoryResponse build() {
protected static void setupCleanupRepositoryResponseDeserializer(ObjectDeserializer<CleanupRepositoryResponse.Builder> op) {
op.add(Builder::results, CleanupRepositoryResults._DESERIALIZER, "results");
}

public int hashCode() {
int result = 17;
result = 31 * result + this.results.hashCode();
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
CleanupRepositoryResponse other = (CleanupRepositoryResponse) o;
return Objects.equals(this.results, other.results);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import jakarta.json.stream.JsonGenerator;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import javax.annotation.Generated;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -330,4 +331,27 @@ protected static void setupCloneSnapshotRequestDeserializer(ObjectDeserializer<C
true,
CloneSnapshotResponse._DESERIALIZER
);

public int hashCode() {
int result = 17;
result = 31 * result + Objects.hashCode(this.clusterManagerTimeout);
result = 31 * result + this.indices.hashCode();
result = 31 * result + Objects.hashCode(this.masterTimeout);
result = 31 * result + this.repository.hashCode();
result = 31 * result + this.snapshot.hashCode();
result = 31 * result + this.targetSnapshot.hashCode();
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
CloneSnapshotRequest other = (CloneSnapshotRequest) o;
return Objects.equals(this.clusterManagerTimeout, other.clusterManagerTimeout)
&& Objects.equals(this.indices, other.indices)
&& Objects.equals(this.masterTimeout, other.masterTimeout)
&& Objects.equals(this.repository, other.repository)
&& Objects.equals(this.snapshot, other.snapshot)
&& Objects.equals(this.targetSnapshot, other.targetSnapshot);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,18 @@ public CloneSnapshotResponse build() {
protected static void setupCloneSnapshotResponseDeserializer(ObjectDeserializer<CloneSnapshotResponse.Builder> op) {
AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op);
}

public int hashCode() {
int result = super.hashCode();
return result;
}

public boolean equals(Object o) {
if (!super.equals(o)) {
return false;
}
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import javax.annotation.Generated;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -263,4 +264,23 @@ public VerifyRepositoryRequest build() {
false,
VerifyRepositoryResponse._DESERIALIZER
);

public int hashCode() {
int result = 17;
result = 31 * result + Objects.hashCode(this.clusterManagerTimeout);
result = 31 * result + Objects.hashCode(this.masterTimeout);
result = 31 * result + this.repository.hashCode();
result = 31 * result + Objects.hashCode(this.timeout);
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
VerifyRepositoryRequest other = (VerifyRepositoryRequest) o;
return Objects.equals(this.clusterManagerTimeout, other.clusterManagerTimeout)
&& Objects.equals(this.masterTimeout, other.masterTimeout)
&& Objects.equals(this.repository, other.repository)
&& Objects.equals(this.timeout, other.timeout);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

import jakarta.json.stream.JsonGenerator;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import javax.annotation.Generated;
import org.opensearch.client.json.JsonpDeserializable;
Expand Down Expand Up @@ -164,4 +165,17 @@ public VerifyRepositoryResponse build() {
protected static void setupVerifyRepositoryResponseDeserializer(ObjectDeserializer<VerifyRepositoryResponse.Builder> op) {
op.add(Builder::nodes, JsonpDeserializer.stringMapDeserializer(CompactNodeInfo._DESERIALIZER), "nodes");
}

public int hashCode() {
int result = 17;
result = 31 * result + this.nodes.hashCode();
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
VerifyRepositoryResponse other = (VerifyRepositoryResponse) o;
return Objects.equals(this.nodes, other.nodes);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,18 @@ protected static void setupCleanupRepositoryResultsDeserializer(ObjectDeserializ
op.add(Builder::deletedBlobs, JsonpDeserializer.longDeserializer(), "deleted_blobs");
op.add(Builder::deletedBytes, JsonpDeserializer.longDeserializer(), "deleted_bytes");
}

public int hashCode() {
int result = 17;
result = 31 * result + Long.hashCode(this.deletedBlobs);
result = 31 * result + Long.hashCode(this.deletedBytes);
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
CleanupRepositoryResults other = (CleanupRepositoryResults) o;
return this.deletedBlobs() == other.deletedBlobs() && this.deletedBytes() == other.deletedBytes();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
package org.opensearch.client.opensearch.snapshot.verify_repository;

import jakarta.json.stream.JsonGenerator;
import java.util.Objects;
import java.util.function.Function;
import javax.annotation.Generated;
import org.opensearch.client.json.JsonpDeserializable;
Expand Down Expand Up @@ -130,4 +131,17 @@ public CompactNodeInfo build() {
protected static void setupCompactNodeInfoDeserializer(ObjectDeserializer<CompactNodeInfo.Builder> op) {
op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name");
}

public int hashCode() {
int result = 17;
result = 31 * result + this.name.hashCode();
return result;
}

public boolean equals(Object o) {
if (this == o) return true;
if (this.getClass() != o.getClass()) return false;
CompactNodeInfo other = (CompactNodeInfo) o;
return Objects.equals(this.name, other.name);
}
}

0 comments on commit 162a364

Please sign in to comment.