Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>

private Integer status;

public Builder() {
}
private Builder(BulkIndexByScrollFailure instance) {
this.cause = instance.cause;
this.id = instance.id;
this.index = instance.index;
this.status = instance.status;

}
/**
* Required - API name: {@code cause}
*/
Expand Down Expand Up @@ -215,6 +224,12 @@ public BulkIndexByScrollFailure build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,20 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement

private Long avgSizeInBytes;

public Builder() {
}
private Builder(BulkStats instance) {
this.totalOperations = instance.totalOperations;
this.totalTime = instance.totalTime;
this.totalTimeInMillis = instance.totalTimeInMillis;
this.totalSize = instance.totalSize;
this.totalSizeInBytes = instance.totalSizeInBytes;
this.avgTime = instance.avgTime;
this.avgTimeInMillis = instance.avgTimeInMillis;
this.avgSize = instance.avgSize;
this.avgSizeInBytes = instance.avgSizeInBytes;

}
/**
* Required - API name: {@code total_operations}
*/
Expand Down Expand Up @@ -355,6 +369,12 @@ public BulkStats build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement

private Double y;

public Builder() {
}
private Builder(CartesianPoint instance) {
this.x = instance.x;
this.y = instance.y;

}
/**
* Required - API name: {@code x}
*/
Expand Down Expand Up @@ -158,6 +165,12 @@ public CartesianPoint build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,17 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
@Nullable
private List<ShardFailure> failures;

public Builder() {
}
private Builder(ClusterDetails instance) {
this.status = instance.status;
this.indices = instance.indices;
this.took = instance.took;
this.timedOut = instance.timedOut;
this.shards = instance.shards;
this.failures = instance.failures;

}
/**
* Required - API name: {@code status}
*/
Expand Down Expand Up @@ -300,6 +311,12 @@ public ClusterDetails build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
@Nullable
private Map<String, ClusterDetails> details;

public Builder() {
}
private Builder(ClusterStatistics instance) {
this.skipped = instance.skipped;
this.successful = instance.successful;
this.total = instance.total;
this.running = instance.running;
this.partial = instance.partial;
this.failed = instance.failed;
this.details = instance.details;

}
/**
* Required - API name: {@code skipped}
*/
Expand Down Expand Up @@ -307,6 +319,12 @@ public ClusterStatistics build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
@Nullable
private Map<String, FieldSizeUsage> fields;

public Builder() {
}
private Builder(CompletionStats instance) {
this.sizeInBytes = instance.sizeInBytes;
this.size = instance.size;
this.fields = instance.fields;

}
/**
* Required - Total amount, in bytes, of memory used for completion across all
* shards assigned to selected nodes.
Expand Down Expand Up @@ -232,6 +240,12 @@ public CompletionStats build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement

private Double right;

public Builder() {
}
private Builder(CoordsGeoBounds instance) {
this.top = instance.top;
this.bottom = instance.bottom;
this.left = instance.left;
this.right = instance.right;

}
/**
* Required - API name: {@code top}
*/
Expand Down Expand Up @@ -204,6 +213,12 @@ public CoordsGeoBounds build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
@Nullable
private String totalSize;

public Builder() {
}
private Builder(DocStats instance) {
this.count = instance.count;
this.deleted = instance.deleted;
this.totalSizeInBytes = instance.totalSizeInBytes;
this.totalSize = instance.totalSize;

}
/**
* Required - Total number of non-deleted documents across all primary shards
* assigned to selected nodes. This number is based on documents in Lucene
Expand Down Expand Up @@ -247,6 +256,12 @@ public DocStats build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,20 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>

private String number;

public Builder() {
}
private Builder(ElasticsearchVersionInfo instance) {
this.buildDate = instance.buildDate;
this.buildFlavor = instance.buildFlavor;
this.buildHash = instance.buildHash;
this.buildSnapshot = instance.buildSnapshot;
this.buildType = instance.buildType;
this.luceneVersion = instance.luceneVersion;
this.minimumIndexCompatibilityVersion = instance.minimumIndexCompatibilityVersion;
this.minimumWireCompatibilityVersion = instance.minimumWireCompatibilityVersion;
this.number = instance.number;

}
/**
* Required - The Elasticsearch Git commit's date.
* <p>
Expand Down Expand Up @@ -381,6 +395,12 @@ public ElasticsearchVersionInfo build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>

private String number;

public Builder() {
}
private Builder(ElasticsearchVersionMinInfo instance) {
this.buildFlavor = instance.buildFlavor;
this.minimumIndexCompatibilityVersion = instance.minimumIndexCompatibilityVersion;
this.minimumWireCompatibilityVersion = instance.minimumWireCompatibilityVersion;
this.number = instance.number;

}
/**
* Required - API name: {@code build_flavor}
*/
Expand Down Expand Up @@ -211,6 +220,12 @@ public ElasticsearchVersionMinInfo build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,18 @@ public final Builder metadata(String key, JsonData value) {
@Nullable
private List<ErrorCause> suppressed;

public Builder() {
}
private Builder(ErrorCause instance) {
this.type = instance.type;
this.reason = instance.reason;
this.stackTrace = instance.stackTrace;
this.causedBy = instance.causedBy;
this.rootCause = instance.rootCause;
this.suppressed = instance.suppressed;
this.metadata = instance.metadata;

}
/**
* The type of error
* <p>
Expand Down Expand Up @@ -398,6 +410,12 @@ public ErrorCause build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement

private Integer status;

public Builder() {
}
private Builder(ErrorResponse instance) {
this.error = instance.error;
this.status = instance.status;

}
/**
* Required - API name: {@code error}
*/
Expand Down Expand Up @@ -168,6 +175,12 @@ public ErrorResponse build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement

private Long memorySizeInBytes;

public Builder() {
}
private Builder(FieldMemoryUsage instance) {
this.memorySize = instance.memorySize;
this.memorySizeInBytes = instance.memorySizeInBytes;

}
/**
* API name: {@code memory_size}
*/
Expand Down Expand Up @@ -165,6 +172,12 @@ public FieldMemoryUsage build() {
}
}

/**
* @return New {@link Builder} initialized with field values of this instance
*/
public Builder rebuild() {
return new Builder(this);
}
// ---------------------------------------------------------------------------------------------

/**
Expand Down
Loading
Loading