Class NotificationEndpointGrpcSettings.Builder (1.55.0)

public static final class NotificationEndpointGrpcSettings.Builder extends GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder> implements NotificationEndpointGrpcSettingsOrBuilder

Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration attempting to send notification to this endpoint.

Protobuf type google.cloud.compute.v1.NotificationEndpointGrpcSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpointGrpcSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

build()

public NotificationEndpointGrpcSettings build()
Returns
Type Description
NotificationEndpointGrpcSettings

buildPartial()

public NotificationEndpointGrpcSettings buildPartial()
Returns
Type Description
NotificationEndpointGrpcSettings

clear()

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

clearAuthority()

public NotificationEndpointGrpcSettings.Builder clearAuthority()

Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3

optional string authority = 401868611;

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

clearEndpoint()

public NotificationEndpointGrpcSettings.Builder clearEndpoint()

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.

optional string endpoint = 130489749;

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NotificationEndpointGrpcSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationEndpointGrpcSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

clearPayloadName()

public NotificationEndpointGrpcSettings.Builder clearPayloadName()

Optional. If specified, this field is used to populate the "name" field in gRPC requests.

optional string payload_name = 300358300;

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

clearResendInterval()

public NotificationEndpointGrpcSettings.Builder clearResendInterval()

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

clearRetryDurationSec()

public NotificationEndpointGrpcSettings.Builder clearRetryDurationSec()

How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.

optional uint32 retry_duration_sec = 115681117;

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

clone()

public NotificationEndpointGrpcSettings.Builder clone()
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

getAuthority()

public String getAuthority()

Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3

optional string authority = 401868611;

Returns
Type Description
String

The authority.

getAuthorityBytes()

public ByteString getAuthorityBytes()

Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3

optional string authority = 401868611;

Returns
Type Description
ByteString

The bytes for authority.

getDefaultInstanceForType()

public NotificationEndpointGrpcSettings getDefaultInstanceForType()
Returns
Type Description
NotificationEndpointGrpcSettings

getDescriptorForType()

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

getEndpoint()

public String getEndpoint()

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.

optional string endpoint = 130489749;

Returns
Type Description
String

The endpoint.

getEndpointBytes()

public ByteString getEndpointBytes()

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.

optional string endpoint = 130489749;

Returns
Type Description
ByteString

The bytes for endpoint.

getPayloadName()

public String getPayloadName()

Optional. If specified, this field is used to populate the "name" field in gRPC requests.

optional string payload_name = 300358300;

Returns
Type Description
String

The payloadName.

getPayloadNameBytes()

public ByteString getPayloadNameBytes()

Optional. If specified, this field is used to populate the "name" field in gRPC requests.

optional string payload_name = 300358300;

Returns
Type Description
ByteString

The bytes for payloadName.

getResendInterval()

public Duration getResendInterval()

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Returns
Type Description
Duration

The resendInterval.

getResendIntervalBuilder()

public Duration.Builder getResendIntervalBuilder()

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Returns
Type Description
Duration.Builder

getResendIntervalOrBuilder()

public DurationOrBuilder getResendIntervalOrBuilder()

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Returns
Type Description
DurationOrBuilder

getRetryDurationSec()

public int getRetryDurationSec()

How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.

optional uint32 retry_duration_sec = 115681117;

Returns
Type Description
int

The retryDurationSec.

hasAuthority()

public boolean hasAuthority()

Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3

optional string authority = 401868611;

Returns
Type Description
boolean

Whether the authority field is set.

hasEndpoint()

public boolean hasEndpoint()

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.

optional string endpoint = 130489749;

Returns
Type Description
boolean

Whether the endpoint field is set.

hasPayloadName()

public boolean hasPayloadName()

Optional. If specified, this field is used to populate the "name" field in gRPC requests.

optional string payload_name = 300358300;

Returns
Type Description
boolean

Whether the payloadName field is set.

hasResendInterval()

public boolean hasResendInterval()

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Returns
Type Description
boolean

Whether the resendInterval field is set.

hasRetryDurationSec()

public boolean hasRetryDurationSec()

How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.

optional uint32 retry_duration_sec = 115681117;

Returns
Type Description
boolean

Whether the retryDurationSec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NotificationEndpointGrpcSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResendInterval(Duration value)

public NotificationEndpointGrpcSettings.Builder mergeResendInterval(Duration value)

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Parameter
Name Description
value Duration
Returns
Type Description
NotificationEndpointGrpcSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpointGrpcSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

setAuthority(String value)

public NotificationEndpointGrpcSettings.Builder setAuthority(String value)

Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3

optional string authority = 401868611;

Parameter
Name Description
value String

The authority to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setAuthorityBytes(ByteString value)

public NotificationEndpointGrpcSettings.Builder setAuthorityBytes(ByteString value)

Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3

optional string authority = 401868611;

Parameter
Name Description
value ByteString

The bytes for authority to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setEndpoint(String value)

public NotificationEndpointGrpcSettings.Builder setEndpoint(String value)

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.

optional string endpoint = 130489749;

Parameter
Name Description
value String

The endpoint to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

public NotificationEndpointGrpcSettings.Builder setEndpointBytes(ByteString value)

Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.

optional string endpoint = 130489749;

Parameter
Name Description
value ByteString

The bytes for endpoint to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpointGrpcSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

setPayloadName(String value)

public NotificationEndpointGrpcSettings.Builder setPayloadName(String value)

Optional. If specified, this field is used to populate the "name" field in gRPC requests.

optional string payload_name = 300358300;

Parameter
Name Description
value String

The payloadName to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setPayloadNameBytes(ByteString value)

public NotificationEndpointGrpcSettings.Builder setPayloadNameBytes(ByteString value)

Optional. If specified, this field is used to populate the "name" field in gRPC requests.

optional string payload_name = 300358300;

Parameter
Name Description
value ByteString

The bytes for payloadName to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NotificationEndpointGrpcSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides

setResendInterval(Duration value)

public NotificationEndpointGrpcSettings.Builder setResendInterval(Duration value)

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Parameter
Name Description
value Duration
Returns
Type Description
NotificationEndpointGrpcSettings.Builder

setResendInterval(Duration.Builder builderForValue)

public NotificationEndpointGrpcSettings.Builder setResendInterval(Duration.Builder builderForValue)

Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.

optional .google.cloud.compute.v1.Duration resend_interval = 478288969;

Parameter
Name Description
builderForValue Duration.Builder
Returns
Type Description
NotificationEndpointGrpcSettings.Builder

setRetryDurationSec(int value)

public NotificationEndpointGrpcSettings.Builder setRetryDurationSec(int value)

How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.

optional uint32 retry_duration_sec = 115681117;

Parameter
Name Description
value int

The retryDurationSec to set.

Returns
Type Description
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpointGrpcSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NotificationEndpointGrpcSettings.Builder
Overrides