Class NotificationEndpointGrpcSettings.Builder (1.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpointGrpcSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder
Overrides

build()

public NotificationEndpointGrpcSettings build()
Returns
TypeDescription
NotificationEndpointGrpcSettings

buildPartial()

public NotificationEndpointGrpcSettings buildPartial()
Returns
TypeDescription
NotificationEndpointGrpcSettings

clear()

public NotificationEndpointGrpcSettings.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NotificationEndpointGrpcSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationEndpointGrpcSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

clone()

public NotificationEndpointGrpcSettings.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for authority.

getDefaultInstanceForType()

public NotificationEndpointGrpcSettings getDefaultInstanceForType()
Returns
TypeDescription
NotificationEndpointGrpcSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the retryDurationSec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationEndpointGrpcSettings other)

public NotificationEndpointGrpcSettings.Builder mergeFrom(NotificationEndpointGrpcSettings other)
Parameter
NameDescription
otherNotificationEndpointGrpcSettings
Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationEndpointGrpcSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationEndpointGrpcSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpointGrpcSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The authority to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for authority to set.

Returns
TypeDescription
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
NameDescription
valueString

The endpoint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for endpoint to set.

Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationEndpointGrpcSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The payloadName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for payloadName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueDuration.Builder
Returns
TypeDescription
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
NameDescription
valueint

The retryDurationSec to set.

Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationEndpointGrpcSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationEndpointGrpcSettings.Builder
Overrides