Class HttpSettings.Builder (0.37.0)

public static final class HttpSettings.Builder extends GeneratedMessage.Builder<HttpSettings.Builder> implements HttpSettingsOrBuilder

HTTP settings.

Protobuf type google.cloud.chronicle.v1.HttpSettings

Static Methods

getDescriptor()

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

Methods

build()

public HttpSettings build()
Returns
Type Description
HttpSettings

buildPartial()

public HttpSettings buildPartial()
Returns
Type Description
HttpSettings

clear()

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

clearSourceDeletionOption()

public HttpSettings.Builder clearSourceDeletionOption()

Source deletion option.

.google.cloud.chronicle.v1.SourceDeletionOption source_deletion_option = 3;

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

clearSourceType()

public HttpSettings.Builder clearSourceType()

The URI source type.

.google.cloud.chronicle.v1.URISourceType source_type = 2;

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

clearUri()

public HttpSettings.Builder clearUri()

HTTP URI.

string uri = 1;

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public HttpSettings getDefaultInstanceForType()
Returns
Type Description
HttpSettings

getDescriptorForType()

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

getSourceDeletionOption()

public SourceDeletionOption getSourceDeletionOption()

Source deletion option.

.google.cloud.chronicle.v1.SourceDeletionOption source_deletion_option = 3;

Returns
Type Description
SourceDeletionOption

The sourceDeletionOption.

getSourceDeletionOptionValue()

public int getSourceDeletionOptionValue()

Source deletion option.

.google.cloud.chronicle.v1.SourceDeletionOption source_deletion_option = 3;

Returns
Type Description
int

The enum numeric value on the wire for sourceDeletionOption.

getSourceType()

public URISourceType getSourceType()

The URI source type.

.google.cloud.chronicle.v1.URISourceType source_type = 2;

Returns
Type Description
URISourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

The URI source type.

.google.cloud.chronicle.v1.URISourceType source_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

getUri()

public String getUri()

HTTP URI.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

HTTP URI.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSourceDeletionOption(SourceDeletionOption value)

public HttpSettings.Builder setSourceDeletionOption(SourceDeletionOption value)

Source deletion option.

.google.cloud.chronicle.v1.SourceDeletionOption source_deletion_option = 3;

Parameter
Name Description
value SourceDeletionOption

The sourceDeletionOption to set.

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

setSourceDeletionOptionValue(int value)

public HttpSettings.Builder setSourceDeletionOptionValue(int value)

Source deletion option.

.google.cloud.chronicle.v1.SourceDeletionOption source_deletion_option = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for sourceDeletionOption to set.

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

setSourceType(URISourceType value)

public HttpSettings.Builder setSourceType(URISourceType value)

The URI source type.

.google.cloud.chronicle.v1.URISourceType source_type = 2;

Parameter
Name Description
value URISourceType

The sourceType to set.

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

setSourceTypeValue(int value)

public HttpSettings.Builder setSourceTypeValue(int value)

The URI source type.

.google.cloud.chronicle.v1.URISourceType source_type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for sourceType to set.

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

setUri(String value)

public HttpSettings.Builder setUri(String value)

HTTP URI.

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
HttpSettings.Builder

This builder for chaining.

setUriBytes(ByteString value)

public HttpSettings.Builder setUriBytes(ByteString value)

HTTP URI.

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
HttpSettings.Builder

This builder for chaining.