Class BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaTextEditorCodeExecutionStrReplaceResultBlockParam.BuilderA builder for BetaTextEditorCodeExecutionStrReplaceResultBlockParam.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("text_editor_code_execution_str_replace_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
lines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder lines(List<String> lines)
-
lines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder lines(Optional<List<String>> lines)
Alias for calling Builder.lines with
lines.orElse(null).
-
lines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder lines(JsonField<List<String>> lines)
Sets Builder.lines to an arbitrary JSON value.
You should usually call Builder.lines with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addLine
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder addLine(String line)
-
newLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newLines(Long newLines)
-
newLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newLines(Long newLines)
Alias for Builder.newLines.
This unboxed primitive overload exists for backwards compatibility.
-
newLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newLines(Optional<Long> newLines)
Alias for calling Builder.newLines with
newLines.orElse(null).
-
newLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newLines(JsonField<Long> newLines)
Sets Builder.newLines to an arbitrary JSON value.
You should usually call Builder.newLines with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
newStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newStart(Long newStart)
-
newStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newStart(Long newStart)
Alias for Builder.newStart.
This unboxed primitive overload exists for backwards compatibility.
-
newStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newStart(Optional<Long> newStart)
Alias for calling Builder.newStart with
newStart.orElse(null).
-
newStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder newStart(JsonField<Long> newStart)
Sets Builder.newStart to an arbitrary JSON value.
You should usually call Builder.newStart with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
oldLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldLines(Long oldLines)
-
oldLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldLines(Long oldLines)
Alias for Builder.oldLines.
This unboxed primitive overload exists for backwards compatibility.
-
oldLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldLines(Optional<Long> oldLines)
Alias for calling Builder.oldLines with
oldLines.orElse(null).
-
oldLines
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldLines(JsonField<Long> oldLines)
Sets Builder.oldLines to an arbitrary JSON value.
You should usually call Builder.oldLines with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
oldStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldStart(Long oldStart)
-
oldStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldStart(Long oldStart)
Alias for Builder.oldStart.
This unboxed primitive overload exists for backwards compatibility.
-
oldStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldStart(Optional<Long> oldStart)
Alias for calling Builder.oldStart with
oldStart.orElse(null).
-
oldStart
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder oldStart(JsonField<Long> oldStart)
Sets Builder.oldStart to an arbitrary JSON value.
You should usually call Builder.oldStart with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTextEditorCodeExecutionStrReplaceResultBlockParam build()
Returns an immutable instance of BetaTextEditorCodeExecutionStrReplaceResultBlockParam.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-