Class CustomAPIResponseConfig.Builder (0.37.0)

public static final class CustomAPIResponseConfig.Builder extends GeneratedMessage.Builder<CustomAPIResponseConfig.Builder> implements CustomAPIResponseConfigOrBuilder

Configuration for handling the API response.

Protobuf type google.cloud.chronicle.v1.CustomAPIResponseConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTargetDataPath(Iterable<String> values)

public CustomAPIResponseConfig.Builder addAllTargetDataPath(Iterable<String> values)

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The targetDataPath to add.

Returns
Type Description
CustomAPIResponseConfig.Builder

This builder for chaining.

addTargetDataPath(String value)

public CustomAPIResponseConfig.Builder addTargetDataPath(String value)

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The targetDataPath to add.

Returns
Type Description
CustomAPIResponseConfig.Builder

This builder for chaining.

addTargetDataPathBytes(ByteString value)

public CustomAPIResponseConfig.Builder addTargetDataPathBytes(ByteString value)

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the targetDataPath to add.

Returns
Type Description
CustomAPIResponseConfig.Builder

This builder for chaining.

build()

public CustomAPIResponseConfig build()
Returns
Type Description
CustomAPIResponseConfig

buildPartial()

public CustomAPIResponseConfig buildPartial()
Returns
Type Description
CustomAPIResponseConfig

clear()

public CustomAPIResponseConfig.Builder clear()
Returns
Type Description
CustomAPIResponseConfig.Builder
Overrides

clearTargetDataPath()

public CustomAPIResponseConfig.Builder clearTargetDataPath()

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomAPIResponseConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public CustomAPIResponseConfig getDefaultInstanceForType()
Returns
Type Description
CustomAPIResponseConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTargetDataPath(int index)

public String getTargetDataPath(int index)

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The targetDataPath at the given index.

getTargetDataPathBytes(int index)

public ByteString getTargetDataPathBytes(int index)

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the targetDataPath at the given index.

getTargetDataPathCount()

public int getTargetDataPathCount()

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of targetDataPath.

getTargetDataPathList()

public ProtocolStringList getTargetDataPathList()

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the targetDataPath.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomAPIResponseConfig other)

public CustomAPIResponseConfig.Builder mergeFrom(CustomAPIResponseConfig other)
Parameter
Name Description
other CustomAPIResponseConfig
Returns
Type Description
CustomAPIResponseConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomAPIResponseConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomAPIResponseConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomAPIResponseConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomAPIResponseConfig.Builder
Overrides

setTargetDataPath(int index, String value)

public CustomAPIResponseConfig.Builder setTargetDataPath(int index, String value)

Required. Enter the exact path in the API's response payload where the list of target log entries is located.

repeated string target_data_path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The targetDataPath to set.

Returns
Type Description
CustomAPIResponseConfig.Builder

This builder for chaining.