Package com.google.cloud.compute.v1
Class NotificationEndpointGrpcSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
- com.google.cloud.compute.v1.NotificationEndpointGrpcSettings.Builder
-
- All Implemented Interfaces:
NotificationEndpointGrpcSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NotificationEndpointGrpcSettings
public static final class NotificationEndpointGrpcSettings.Builder extends com.google.protobuf.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 typegoogle.cloud.compute.v1.NotificationEndpointGrpcSettings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationEndpointGrpcSettings.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NotificationEndpointGrpcSettingsbuild()NotificationEndpointGrpcSettingsbuildPartial()NotificationEndpointGrpcSettings.Builderclear()NotificationEndpointGrpcSettings.BuilderclearAuthority()Optional.NotificationEndpointGrpcSettings.BuilderclearEndpoint()Endpoint to which gRPC notifications are sent.NotificationEndpointGrpcSettings.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NotificationEndpointGrpcSettings.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NotificationEndpointGrpcSettings.BuilderclearPayloadName()Optional.NotificationEndpointGrpcSettings.BuilderclearResendInterval()Optional.NotificationEndpointGrpcSettings.BuilderclearRetryDurationSec()How much time (in seconds) is spent attempting notification retries until a successful response is received.NotificationEndpointGrpcSettings.Builderclone()StringgetAuthority()Optional.com.google.protobuf.ByteStringgetAuthorityBytes()Optional.NotificationEndpointGrpcSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEndpoint()Endpoint to which gRPC notifications are sent.com.google.protobuf.ByteStringgetEndpointBytes()Endpoint to which gRPC notifications are sent.StringgetPayloadName()Optional.com.google.protobuf.ByteStringgetPayloadNameBytes()Optional.DurationgetResendInterval()Optional.Duration.BuildergetResendIntervalBuilder()Optional.DurationOrBuildergetResendIntervalOrBuilder()Optional.intgetRetryDurationSec()How much time (in seconds) is spent attempting notification retries until a successful response is received.booleanhasAuthority()Optional.booleanhasEndpoint()Endpoint to which gRPC notifications are sent.booleanhasPayloadName()Optional.booleanhasResendInterval()Optional.booleanhasRetryDurationSec()How much time (in seconds) is spent attempting notification retries until a successful response is received.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NotificationEndpointGrpcSettings.BuildermergeFrom(NotificationEndpointGrpcSettings other)NotificationEndpointGrpcSettings.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NotificationEndpointGrpcSettings.BuildermergeFrom(com.google.protobuf.Message other)NotificationEndpointGrpcSettings.BuildermergeResendInterval(Duration value)Optional.NotificationEndpointGrpcSettings.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NotificationEndpointGrpcSettings.BuildersetAuthority(String value)Optional.NotificationEndpointGrpcSettings.BuildersetAuthorityBytes(com.google.protobuf.ByteString value)Optional.NotificationEndpointGrpcSettings.BuildersetEndpoint(String value)Endpoint to which gRPC notifications are sent.NotificationEndpointGrpcSettings.BuildersetEndpointBytes(com.google.protobuf.ByteString value)Endpoint to which gRPC notifications are sent.NotificationEndpointGrpcSettings.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NotificationEndpointGrpcSettings.BuildersetPayloadName(String value)Optional.NotificationEndpointGrpcSettings.BuildersetPayloadNameBytes(com.google.protobuf.ByteString value)Optional.NotificationEndpointGrpcSettings.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NotificationEndpointGrpcSettings.BuildersetResendInterval(Duration value)Optional.NotificationEndpointGrpcSettings.BuildersetResendInterval(Duration.Builder builderForValue)Optional.NotificationEndpointGrpcSettings.BuildersetRetryDurationSec(int value)How much time (in seconds) is spent attempting notification retries until a successful response is received.NotificationEndpointGrpcSettings.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
clear
public NotificationEndpointGrpcSettings.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
getDefaultInstanceForType
public NotificationEndpointGrpcSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NotificationEndpointGrpcSettings build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NotificationEndpointGrpcSettings buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NotificationEndpointGrpcSettings.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
setField
public NotificationEndpointGrpcSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
clearField
public NotificationEndpointGrpcSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
clearOneof
public NotificationEndpointGrpcSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
setRepeatedField
public NotificationEndpointGrpcSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
addRepeatedField
public NotificationEndpointGrpcSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
mergeFrom
public NotificationEndpointGrpcSettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationEndpointGrpcSettings.Builder>
-
mergeFrom
public NotificationEndpointGrpcSettings.Builder mergeFrom(NotificationEndpointGrpcSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
mergeFrom
public NotificationEndpointGrpcSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationEndpointGrpcSettings.Builder>- Throws:
IOException
-
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;- Specified by:
hasAuthorityin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- Whether the authority field is set.
-
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;- Specified by:
getAuthorityin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The authority.
-
getAuthorityBytes
public com.google.protobuf.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;- Specified by:
getAuthorityBytesin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The bytes for authority.
-
setAuthority
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;- Parameters:
value- The authority to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAuthorityBytes
public NotificationEndpointGrpcSettings.Builder setAuthorityBytes(com.google.protobuf.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;- Parameters:
value- The bytes for authority to set.- Returns:
- This builder for chaining.
-
hasEndpoint
public boolean hasEndpoint()
Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.
optional string endpoint = 130489749;- Specified by:
hasEndpointin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- Whether the endpoint field is set.
-
getEndpoint
public String getEndpoint()
Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.
optional string endpoint = 130489749;- Specified by:
getEndpointin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The endpoint.
-
getEndpointBytes
public com.google.protobuf.ByteString getEndpointBytes()
Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.
optional string endpoint = 130489749;- Specified by:
getEndpointBytesin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
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;- Parameters:
value- The endpoint to set.- Returns:
- 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:
- This builder for chaining.
-
setEndpointBytes
public NotificationEndpointGrpcSettings.Builder setEndpointBytes(com.google.protobuf.ByteString value)
Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.
optional string endpoint = 130489749;- Parameters:
value- The bytes for endpoint to set.- Returns:
- This builder for chaining.
-
hasPayloadName
public boolean hasPayloadName()
Optional. If specified, this field is used to populate the "name" field in gRPC requests.
optional string payload_name = 300358300;- Specified by:
hasPayloadNamein interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- Whether the payloadName field is set.
-
getPayloadName
public String getPayloadName()
Optional. If specified, this field is used to populate the "name" field in gRPC requests.
optional string payload_name = 300358300;- Specified by:
getPayloadNamein interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The payloadName.
-
getPayloadNameBytes
public com.google.protobuf.ByteString getPayloadNameBytes()
Optional. If specified, this field is used to populate the "name" field in gRPC requests.
optional string payload_name = 300358300;- Specified by:
getPayloadNameBytesin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The bytes for payloadName.
-
setPayloadName
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;- Parameters:
value- The payloadName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPayloadNameBytes
public NotificationEndpointGrpcSettings.Builder setPayloadNameBytes(com.google.protobuf.ByteString value)
Optional. If specified, this field is used to populate the "name" field in gRPC requests.
optional string payload_name = 300358300;- Parameters:
value- The bytes for payloadName to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasResendIntervalin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- Whether the resendInterval field is set.
-
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;- Specified by:
getResendIntervalin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The resendInterval.
-
setResendInterval
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;
-
setResendInterval
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;
-
mergeResendInterval
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;
-
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;
-
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;
-
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;- Specified by:
getResendIntervalOrBuilderin interfaceNotificationEndpointGrpcSettingsOrBuilder
-
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;- Specified by:
hasRetryDurationSecin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- Whether the retryDurationSec field is set.
-
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;- Specified by:
getRetryDurationSecin interfaceNotificationEndpointGrpcSettingsOrBuilder- Returns:
- The retryDurationSec.
-
setRetryDurationSec
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;- Parameters:
value- The retryDurationSec to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final NotificationEndpointGrpcSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
mergeUnknownFields
public final NotificationEndpointGrpcSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationEndpointGrpcSettings.Builder>
-
-