gpt4 book ai didi

com.google.gdata.client.youtube.YouTubeQuery.getCustomParameterValue()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 23:47:31 32 4
gpt4 key购买 nike

本文整理了Java中com.google.gdata.client.youtube.YouTubeQuery.getCustomParameterValue()方法的一些代码示例,展示了YouTubeQuery.getCustomParameterValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YouTubeQuery.getCustomParameterValue()方法的具体详情如下:
包路径:com.google.gdata.client.youtube.YouTubeQuery
类名称:YouTubeQuery
方法名:getCustomParameterValue

YouTubeQuery.getCustomParameterValue介绍

暂无

代码示例

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code location-radius} parameter. Format is 
 *   "100km". Valid units of measurement are "ft", "mi", "m", and "km".
 * @return The current search radius.
 */
public String getLocationRadius() {
 return getCustomParameterValue(LOCATION_RADIUS);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code location-radius} parameter. Format is 
 *   "100km". Valid units of measurement are "ft", "mi", "m", and "km".
 * @return The current search radius.
 */
public String getLocationRadius() {
 return getCustomParameterValue(LOCATION_RADIUS);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Gets the value of the {@code lr} parameter.
 *
 * @return value of the {@code lr} parameter; a language code
 */
public String getLanguageRestrict() {
 return getCustomParameterValue(LANGUAGE_RESTRICT);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code lr} parameter.
 *
 * @return value of the {@code lr} parameter; a language code
 */
public String getLanguageRestrict() {
 return getCustomParameterValue(LANGUAGE_RESTRICT);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Returns {@code true} if the query only wants results that have latitude
 * and longitude information.
 * @return {@code true} if the query is restricted by location, {@code false} otherwise.
 */
public boolean hasRestrictLocation() {
 String location = getCustomParameterValue(LOCATION);
 return location != null && location.endsWith("!");
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code vq} parameter.
 *
 * @return current query string
 * @deprecated Please use {@link Query#getFullTextQuery()} instead.
 */
@Deprecated
public String getVideoQuery() {
 return getCustomParameterValue(VQ);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Gets the value of the {@code vq} parameter.
 *
 * @return current query string
 * @deprecated Please use {@link Query#getFullTextQuery()} instead.
 */
@Deprecated
public String getVideoQuery() {
 return getCustomParameterValue(VQ);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Returns {@code true} if the query only wants results that have latitude
 * and longitude information.
 * @return {@code true} if the query is restricted by location, {@code false} otherwise.
 */
public boolean hasRestrictLocation() {
 String location = getCustomParameterValue(LOCATION);
 return location != null && location.endsWith("!");
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code racy} parameter.
 * 
 * @return true if the {@code racy=include} parameter is present
 * @deprecated Please use {@link #getSafeSearch()} instead.
 */
@Deprecated
public boolean getIncludeRacy() {
 return RACY_INCLUDE.equals(getCustomParameterValue(RACY));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Gets the value of the {@code racy} parameter.
 * 
 * @return true if the {@code racy=include} parameter is present
 * @deprecated Please use {@link #getSafeSearch()} instead.
 */
@Deprecated
public boolean getIncludeRacy() {
 return RACY_INCLUDE.equals(getCustomParameterValue(RACY));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Retrieves the IP restriction set on the current query, if any.
 * 
 * @return the current IP v4 restriction or {@code null} if no IP restriction
 *         is set.
 *         
 * @see #getCountryRestriction()
 */
public String getIpRestriction() {
 String restriction = getCustomParameterValue(RESTRICTION);
 if (restriction == null) {
  return null;
 }
 
 return IP_V4_PATTERN.matcher(restriction).matches() ? restriction : null;
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Returns the value of the {@code location} parameter.
 * @return A {@link com.google.gdata.data.geo.impl.GeoRssWhere} element 
 *   describing the center of where to search.
 */
public GeoRssWhere getLocation() {
 String location = getCustomParameterValue(LOCATION);
 location = location.replaceAll("!", "");
 String[] parts = location.split(",");
 return new GeoRssWhere(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code uploader} parameter.
 *
 * @return value of the {@code uploader} parameter.
 * @throws IllegalStateException if a value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.Uploader}
 */
public Uploader getUploader() {
 String stringValue = getCustomParameterValue(UPLOADER);
 return Uploader.fromParameterValue(stringValue);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Returns the value of the {@code location} parameter.
 * @return A {@link com.google.gdata.data.geo.impl.GeoRssWhere} element 
 *   describing the center of where to search.
 */
public GeoRssWhere getLocation() {
 String location = getCustomParameterValue(LOCATION);
 location = location.replaceAll("!", "");
 String[] parts = location.split(",");
 return new GeoRssWhere(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Gets the value of the {@code safeSearch} parameter.
 *
 * @return value of the {@code safeSearch} parameter.
 * @throws IllegalStateException if a value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.SafeSearch}
 */
public SafeSearch getSafeSearch() {
 String stringValue = getCustomParameterValue(SAFE_SEARCH);
 return SafeSearch.fromParameterValue(stringValue);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code safeSearch} parameter.
 *
 * @return value of the {@code safeSearch} parameter.
 * @throws IllegalStateException if a value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.SafeSearch}
 */
public SafeSearch getSafeSearch() {
 String stringValue = getCustomParameterValue(SAFE_SEARCH);
 return SafeSearch.fromParameterValue(stringValue);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Gets the value of the {@code time} parameter.
 *
 * @return value of the {@code time} parameter
 * @throws IllegalStateException if a time value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.Time}
 */
public Time getTime() {
 return Time.fromParameterValue(getCustomParameterValue(TIME));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Gets the value of the {@code uploader} parameter.
 *
 * @return value of the {@code uploader} parameter.
 * @throws IllegalStateException if a value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.Uploader}
 */
public Uploader getUploader() {
 String stringValue = getCustomParameterValue(UPLOADER);
 return Uploader.fromParameterValue(stringValue);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code time} parameter.
 *
 * @return value of the {@code time} parameter
 * @throws IllegalStateException if a time value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.Time}
 */
public Time getTime() {
 return Time.fromParameterValue(getCustomParameterValue(TIME));
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Gets the value of the {@code orderby} parameter.
 *
 * @return value of the {@code orderby} parameter.
 * @throws IllegalStateException if a time value was found in the
 *   query that cannot be transformed into {@link YouTubeQuery.OrderBy}
 */
public OrderBy getOrderby() {
 String stringValue = getCustomParameterValue(ORDERBY);
 if (stringValue != null && stringValue.startsWith("relevance_")) {
  return OrderBy.RELEVANCE;
 }
 return OrderBy.fromParameterValue(stringValue);
}

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com